Compiling PHP5 on Linux
I've tried numerous times to compile PHP5 on my Mandrake Linux 9 without success but tonight I hit pay dirt and successfully compiled Apache!! :Partyguy:
Now I have two problems. I don't know how to get rid of the old Apache that came bundled with my Linux distro and when I try to compile PHP5 the attached screenshot happens :( The configure line works fine and this is what I've used, very basic to start with
To uninstall a program run:
rpm -e apache
You can run rpm -qa to seea list of all programs then search it to make sure you got all the apache parts. Or use the graphical DrakConfig (or something like that) to remove it.
Thanks all :D
I'll have a play and post back if I have any problems, also, can I set it up so in the configuration editor thing that has heaps of Apache options, I can control my new installation?
I hope that was clear because it doesn't look like it from here ;)
OK, I decided to try compiling PHP5 as a static Apache module and I followed the install instructions but got the attached error.
and there I get the error. Now I'm reading over the documentation again I noticed I missed a make install line :( This would probably fix the error but I'm going to post this anyway in case it doesn't ;)
./configure --with-mysql --with-apache2=../apache
./configure --prefix=/root/apache --activate-module=src/modules/php4/libphp4.a
Just out of interest really; is there not a binaries available for PHP5 yet ?
I see CVS and source only ?
There are binaries for Win32.
What ? Where ?
You just download the [EDIT] like any other PHP version to
And your laughing ? Is there a link by any chance ?
[Advisor edit] Can you watch your language please, many young people visit these forums
Advisor - Okay :lol:
Although I did blank out the really bad bits didn't I ?
OK, I've got my MySQL and Apache 2.0.45 compiled and running nicely but PHP5 is being a bugger :( I keep getting parse errors in the MySQL bit so I didn't enable MySQL and then I got the same parse errors in array.c :( I thought maybe I had a bad CVS source so I downloaded a stable PHP4 source and got the exact same errors :(
I'm following the instructions exactly from the manual. Any ideas?