Click to See Complete Forum and Search --> : strange problem


Anon
05-17-2002, 08:24 PM
hi,

i've suscessfully builded and compiled apache and php under linux mandrake 8.1 when i start apache by typing

/usr/local/apache/bin/apachectl start at the shell it tells me httpd started so far so good so i created a php script with the phpinfo(); call in it to see if everything is allright but apache asks me if i want to download the file "test.php" that's offcource not what i want i should see a table with php information how to solve this please ??
regards
Erik

Anon
05-18-2002, 01:05 AM
Erik

Add the following lines to your httpd.conf file, the first line should already be in your httpd.conf from compiling PHP with apache correctly.

php4_module modules/libphp4.so

AddType application/x-httpd-php .php

<files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>