Hi all,
I recently installed the .deb packages of Apache2 and php4 which I've been told should work out of the box but for some reason not on my machine.
I have read the apache2 and php4 README files and Googled. I have found that other people have posted similar threads and have been told to check that
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
are enabled in their httpd.conf file
they are not enabled in my htppd.conf file because it seems to be superceeded by the apache2.conf file. My httpd.conf says
Code:
# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
AddType application/x-httpd-php .php and
AddType application/x-httpd-php-source .phps are commented out by default in my apache2.conf file because they are in the php4.conf file which gets included.
apache2.conf
Code:
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
$ cat php4.conf shows
Code:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
and $ cat php4.load shows
Code:
LoadModule php4_module /usr/lib/apache2/modules/libphp4.so
the path is correct.
I did try uncommenting AddType application/x-httpd-php .php and
AddType application/x-httpd-php-source .phps in my apache2.conf anyway (and restarted apache2) but it didn't have an effect, I also put them in my httpd.conf (and restarted) also with no effect. I tried including php4.load and php4.conf in the httpd.conf but when I restarted that time it said
Code:
Restarting web server: Apache2
[Sat Jan 29 17:27:34 2005] [warn] module php4_module is already loaded, skipping
.
I have just seen my apache2-doc in /etc/apache2/conf.d/ it only mentions handling html files. Could this be the root of my problem?
apache2-doc
Code:
AliasMatch ^/apache2-default/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/share/doc/apache2-doc/manual/$1"
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/share/doc/apache2-doc/manual/$1"
<Directory "/usr/share/doc/apache2-doc/manual/">
Options Indexes
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
please explain things clearly as I'm still a
Thak you for your attention
