LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Parse PHP, not open!! (https://www.linuxquestions.org/questions/programming-9/parse-php-not-open-371388/)

mattp 10-09-2005 11:26 PM

Parse PHP, not open!!
 
I have apache, and PHP installed on Slack 10.2. They were automatically installed with the distro. If I type php at the command prompt, I enter the parser so I know PHP is installed properly. Whenever I go to a PHP page, the web browser trys to download (open or save as) the PHP file instead of parsing it on the server side!! What do I need to configure to fix this? Also, I installed mysql after I installed the distro. Am I going to need to do something similar with MySQL? Thanks.

ag2uki 10-10-2005 12:00 AM

you have to configure your apache. Add MIME type for php:
AddType application/x-httpd-php .php

regards

mattp 10-10-2005 12:09 AM

Now I get (when trying to access a PHP page)"

Open http://localhost/test.php?
Type: AddType


All times are GMT -5. The time now is 02:09 AM.