Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP reinstall woes

Status
Not open for further replies.

jezebel

MIS
Feb 6, 2001
4
US
I've had the worst luck trying to reinstall Apache on my machine. I'm trying to get php4, MySQL and Apache to talk together. I've done this before, but for some odd reason whenever I try to install Apache from the binary source, none of my init scripts work and the daemon won't start up. I decided to try to just work with the rpm install that comes with RedHat 6.2. The problem is, once I've got PHP 4 installed, how do I get Apache to notice it? I can't find any sign of a libphp4.so. I really don't want to have to do this again; the binary source just fails me every time. Any help would be greatly appreciated! Even pointers to a good doc or HOW-TO (I've poured over the PHP and Apache manuals and documentation - no mention whasoever of this kind of thing) Thanks so much!
 
You can see a brief tutorial at my website, Admittedly, I never update this site (currently working on a revision) and pieces of the tutorial are a bit out of date. Most everything you need will still be applicable, however, and it should get you up and running.

As far as the post-Apache inclusion of PHP goes, you would have to make PHP a DSO (Dynamically Shared Object). This is opposed to compiling PHP statically within httpd. For this you use Apache's APXS, located in the apacheroot/bin directory. You can read the details in the PHP "INSTALL" file, but it essentially comes down to this:
./configure --with-apxs=/path/to/apxs/binary --additionalflags

Then you need a LoadModule statement in your httpd.conf file to the effect of "LoadModule php4_module libexec/libphp4.so" along with your AddModule and AddType directives.

Good luck,

brendanc@icehouse.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top