LeeHambley

Registered
Sep 3, 2006
2
0
151
Hey All,

Firstly, thanks to the creators of WHM/cPanel -- it's been incredibly valuable to the course of my business.

Unfortunatley a client requires PHP <4.3.10 for a certian (CodeCrypter) module that requires that specific version of PHP, and I'm unable to find how to add extra version of PHP to the WHM EaayApache build options system.

I've uploaded the tarballs, and extracted files to /home/cpapachebuild/buildapache/ as I was lead to believe this may result in the new version being visible to the WHM build manager, however this was not the case.

If anyone could pose a solition, It would be most gratefully recieved as this problem has already consumed half my afternoon!

Best Wishes,

Lee Hambley
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Those versions of php are full of security holes and has been removed from the build procedure. The oldest version you should run is v4.4.4 these days, otherwise you're exposing the server to hackers. If you want that ancient one, you'll have to build it by hand in shell.
 

LeeHambley

Registered
Sep 3, 2006
2
0
151
chirpy,

Thanks -- i realise the security problems with those versions, I donot have a choice though, I managed to get my colo provider's tech support to build it manaully, attached is the .sh script they provided... incase it's of any use to anyone

Code:
#!/bin/bash
# Shell Script, Installs PHP 4.3.10 On RedHat Enterprise 4 (with cPanel)
echo "Working In "
echo pwd

echo "Fetching PHP From www.php.net"
wget http://uk2.php.net/distributions/php-4.3.10.tar.gz
echo "OK"

echo "Extracting PHP Tarball"
tar -zxvf php-4.3.10.tar.gz
echo "OK"

echo "Switching To Install Directory"
cd php-4.3.10/
echo "OK"

echo "Configuring Against EasyApache"
./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib
echo "OK"

echo "Running Make"
make

echo "Running Make (Install)"
make install

echo "Restart Apache"
httpd restart

echo "Clean Up"
cd ..
rm -rf php-4.3.10
rm -f php-4.3.10.tar.gz

echo "Ending"