Posted by The Natural Philosopher on 10/18/25 12:00
shahin wrote:
> When trying to open a *.php page on my apache server all I get is a
> message
> box asking me if I want to save or open the page.
>
> any idea why?
Vaguely. Cross posted to comp.lang.php. IIRC its to do with having
apache configure to 'know' to execute php'..somewhere deep in the guts
of the apache configs..
this is a starting point from my system (debian sarge, apache2, php5)
/etc/apache2$ grep php */*
mods-available/dir.conf: DirectoryIndex index.html index.cgi
index.pl index.php index.xhtml index.htm
mods-available/php5.conf:<IfModule mod_php5.c>
mods-available/php5.conf: AddType application/x-httpd-php .php .phtml .php3
mods-available/php5.conf: AddType application/x-httpd-php-source .phps
mods-available/php5.load:LoadModule php5_module
/usr/lib/apache2/modules/libphp5.so
mods-enabled/dir.conf: DirectoryIndex index.html index.cgi
index.pl index.php index.xhtml index.htm
mods-enabled/php5.conf:<IfModule mod_php5.c>
mods-enabled/php5.conf: AddType application/x-httpd-php .php .phtml .php3
mods-enabled/php5.conf: AddType application/x-httpd-php-source .phps
mods-enabled/php5.load:LoadModule php5_module
/usr/lib/apache2/modules/libphp5.so
[Back to original message]
|