Hi,
i've configured apache+php on a linux(debian) machine. a request doesn't
return execution but the source of the php file. If i complete the
request url with the php file at the end (.php3 extension), all works
(but not for .php extension).
I guess this problem deals with mime types ?
here is what has been added into my httpd.conf :
LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
...
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi
index.php3 index.php
</IfModule>
....
# AddType allows you to tweak mime.types without actually editing
# it, or to make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache
# distribution - see http://www.php.net) will typically use:
#
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
what's wrong ?
thank you for help !
Vince