Web Hosting Talk







View Full Version : RaQ2 / PHP4


lotuslnd
07-16-2001, 02:30 PM
Guys,

Just curious if anyone has been succesfull at installing PHP4 on their RaQ2. I signed up for a RaQ2 w/ rackspace.net last week without realizing how outdated this machine really is. I was able to install PHP3 using an RPM, but haven't been able to find any RPM's for PHP4. When compiling the PHP4 source for Apache 1.3.3 on the RAQ2, all goes well until I do the make install. At this point, it spits out errors saying that the make install is trying to execute an invalid apxs command (the -s switch does not exist). I'm assuming my version of apxs (and essentially Apache) is extremely outdated. So to recap, if anyone has information on updating Apache (preferably not from source) and PHP4 on a RaQ2, I'd be very greatful.

Thanks.

mlovick
07-16-2001, 03:31 PM
I have installed PHP4 on RAQ2's with no problems at all.

But I always install from source.


Unpack the source and type:

./configure --with-apxs=/usr/sbin/apxs --with-mysql

then:

make

then:

make install

Worked for me on 5 different Raq2's

lotuslnd
07-16-2001, 03:38 PM
This is what I see when I do the make install:

make[1]: Entering directory `/php-4.0.6'
/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/apxs -S LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Error: Unknown option: S
Usage: apxs -g -n <modname>
apxs -q <query> ...
apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>]
[-L <libdir>] [-l <libname>] <files> ...
apxs -i [-a] [-n <modname>] <dsofile> ...
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/php-4.0.6'
make: *** [install-recursive] Error 1

What version of Apache do you have on your RaQ2?

Thanks.

iplexx
07-17-2001, 06:09 AM
php 4.0.6 makes use of the -S switch which is unknown to older aps versions...

see http://www.webhostingtalk.com/showthread.php?s=&threadid=14780

lotuslnd
07-17-2001, 12:19 PM
Martin,

What you said worked beautifully. PHP compiled like magic.

However, PHP is still not working. If you get a second, could you drop me an email? If not, no worries.

matt@bleep.ca

Thanks!!