LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   php4 problem _ downloading index.php instead of displaying (https://www.linuxquestions.org/questions/debian-26/php4-problem-_-downloading-index-php-instead-of-displaying-72419/)

tharris 07-13-2003 07:10 PM

php4 problem _ downloading index.php instead of displaying
 
I just did a fresh install of woody (3.0) and I am getting some strange errors using php4.

after the install ... i did and apt-get install php4 and php installed.
I copied over my webpage ... index.php pointed my browser to the site http://192.168.1.3/index.php and my browser keeps trying to download the index.php instead of running it through php. I looked at my httpd.conf and the module is loaded

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

i even added the following lines

<IfModule libphp4.so>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>

still nothing ... help

tharris

softcore26 07-13-2003 07:59 PM

change <IfModule libphp4.so> to <IfModule mod_php4.c>

tgz 10-24-2003 06:13 PM

I have the same prob.
 
I don think I have my httpd.conf file config'd correctly. I'm now lookin' at php.ini, but without success.


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