Click to See Complete Forum and Search --> : Installing PHP5 with Apache 2


ZibingsCoder
09-05-2004, 11:56 AM
Now, this is just something that a friend of mine tried, but does anyone know of a way to run PHP 5 as a module with Apache 2? She couldn't get it to work, and I just told her to switch to an older version of Apache for now. Any ideas?

d~l
09-05-2004, 01:53 PM
I've got PHP 5.0.1 and Apache2 working together ..

this is the LoadModule configuration line I use ..

#--------------------------------------------------------------
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php .php3 .phtml
#--------------------------------------------------------------

note: for Apache2 use php5apache2.dll .. not .. php5apache.dll
both are found in c:\php\

..

p.s.

I found this tutorial to be helpful ..

http://aesthetic-theory.com/learn.php?server2

planetsim
09-05-2004, 10:31 PM
What OS are we talking about the above is the Windows way. Linux is slightly different but not much

you just need to specify the in the php install

--with-apxs2=/path/to/apxs

then in the httpd.conf

AddType application/x-httpd-php .php
LoadModule php5_module modules/libphp5.so

And i think thats basically all thats required.

ZibingsCoder
09-06-2004, 09:37 AM
It's on *nix, I've forwarded her this post. Maybe...just maybe, she'll actually sign up on these boards. :D :D