Apache2 not processing PHP4 pages on Debian Sarge
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 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 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: Code:
<IfModule mod_php4.c> Code:
LoadModule php4_module /usr/lib/apache2/modules/libphp4.so 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 apache2-doc Code:
AliasMatch ^/apache2-default/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/share/doc/apache2-doc/manual/$1" Thak you for your attention :) |
probably you are editing the wrong file (im guessing only). the httpd.conf file belongs to apache_1.3.x very likely. place the
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .php in the config file that belongs to apache2.x.x then restart the server i dont know debian but that should work anyway good luck j. |
I tried that and it unfortunately didn't work.
Thanks for replying anyway. Danke schön! :) |
Use apt-get install libapache2-mod-php4
In my case this was the solution. |
I think below article will be helpful:
RedHat's httpd-2.0.46-44 Reference Manual Your can read it from my website: verylinux.com! Regards |
Did you get this working? I run Ubuntu which is Debian based and am having exactly the same problem.
|
Sorry, I had to put my attempts at getting php running aside for a while to study for an exam :study:. A missing libapache2-mod-php4 is not my problem as it is installed I will now read this httpd reference manual and I hope that helps, I have glanced at it already and it seemed a bit over my head but hopefully I can understand it when I take the time to read it properly
|
I'm using apache2 & php4 for snort and Acid and they are working fine.
What i did, apt-get install Apache2 php4 libapache-mod-php4 (i rebooted here because i had to go home with my laptop but don't think it matters) and it worked. I left out a lot other things that are needed to make snort and acid working but don't matter if this here above doesn't work I can give you the whole installation procedure. Only i'm still working on the details so maybe you've to wait a few days. |
handlers!
Hey,
I've had the same problem with nearly every server install on any ubuntu machine I've ever craeted. In the end the solution was to add the php _handlers_ (not just the AddType). Basically, this is a line that start with AddHandler..blahblah..php4. Except, that I can't remember how I did it and am now looking for it. I think this simply got lost somewhere when the Modules were moved into included files rather than an embedded list, and it's been a problem ever since. When I find it, I'll post again (perhaps I should have waited,,, hmmmmm) :) UPDATE: look at http://tranchant.plus.com/notes/multiviews |
All times are GMT -5. The time now is 12:07 PM. |