September 26th, 1999, 02:54 PM
I have a Linux server and want to install PHP on it. Do I have to reinstall Apache and PHP together? Or can't I just install PHP by itself. The documentation on this always refers to a new install like I don't yet have Apache installed, but I do. Any help is appreciated.
September 26th, 1999, 05:51 PM
If Apache was set up to use DSO, which is the most common way to set up Apache now, then you can use mod_php and be on your merry way.
Read the INSTALL.DSO file that comes with PHP for more info.
October 5th, 1999, 10:52 PM
I didn't see a install.dso in the php archive, but here's a link on how to install it:
I'm planning on compiling it and installing it from the RPM, but I do have a question on apxs and regex.. What are these??? Are the apxs supposed to be where the .so files for apache are?
October 6th, 1999, 08:56 AM
I tried the DSO install and it seems to go through fine, but there seems to be a problem with mySQL during the install. Does anyone have any suggestions for me?
I am installing it like this:
But in the very last line I am getting an error that it can't find mysql.h in /usr/bin/. I know that mysql is in /usr/bin/, but there is not a mysql.h file anywhere that I can find. Am I suppose to be bundling this install with mySQL? I'm starting to get frustrated with this. If I can't get PHP to work with mySQL it won't be as useful to me as I would like.
October 6th, 1999, 02:42 PM
I had the same problem a couple of times, and yes, you simply need to find the mysql.h file and put it in /usr/bin.
How did you install MySQL? Did you use the RPM, or the compilable source download?
You might want to download the source and look for mysql.h
October 6th, 1999, 05:13 PM
Yeah, the MySQL RPMs throw stuff in all kinds of weird places.
Your best bet is to uninstall the RPMs, download the MySQL source archive and follow its instructions to get it installed (usually in /usr/local/mysql).
Then you can do your PHP config just like you were (except for different MySQL path) and it should work just fine.