[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2 and.... php

Ron Rademaker wrote:


I guess this discussion has come along quite a few times already :) But
I want to get it to work, I only want to use it! I've had it running
fine for over a year on a RH server, but I just want to use debian. I'm
running testing but found some php 4.3.3 packages that I installed...
Why are they only for apache 1.3.x? I really don't understand this, if I
remember correctly creating a php module for apache 1.3.x or for apache
2.x is nothing but a configure option, so creating a php module for
apache2 should be a piece of cake (I would do it myself if I'd know how)
and belongs (IMHO) in at least unstable.

Alright, the above is perhaps more for the devel list, I just wanted to
get it of my chest, anyone knows about a php4 debian package that works
with apache2? I want to stick with only .debs instead of starting to
compile all kinds of things when I require a new package.


Use php4-cgi and make sure that these are in your /etc/apache2/apache2.conf file

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

# Set to use php4-cgi as ssi--added by sysadmin 10/11/03
Action application/x-httpd-php /cgi-bin/php4

You must also make sure that the mod-rewrite module is set up as well.
This will NOT work without it.
I currently am using this to run a very excellent photo album gateway called gallery which is php scripted. If you try to use any debian package that still has a dependency on apache1.3 or apache-common1.3 you are out of luck, and there are a lot of them. I am currently trying to get drupal running using this method but so far just research on how to accomplish this. I will keep you apprised of any other things that I discover.

John Foster
AdVance-Computing Systems

Reply to: