PHP6 version bug in CustomBuild 1.2

tillo

Verified User
Joined
Oct 28, 2007
Messages
862
Location
Switzerland
I beleive I have CustomBuild 1.2.13 (the latest), even if it says it's 1.2.12.

Patch for the small bug:
Code:
--- build.orig	2010-02-23 13:14:24.000000000 +0100
+++ build	2010-02-23 13:14:53.000000000 +0100
@@ -7428,7 +7428,7 @@
 
 	if [ "${PHP6_CGI_OPT}" = "yes" ]; then
 		if [ -e /usr/local/php6/bin/php ]; then
-			PHP5VCGI="`/usr/local/php6/bin/php -v | grep built | awk '{ print $2 }'`"
+			PHP6VCGI="`/usr/local/php6/bin/php -v | grep built | awk '{ print $2 }'`"
 			if [ "${VERSIONS}" = "1" ]; then
 				echo "Latest version of PHP6 (CGI): ${PHP6_VER}"
 				echo "Installed version of PHP6 (CGI): ${PHP6VCGI}"
 
php6

Hello,
I have:
#CustomBuild 1.2 settings
default_php=5
php5_cli=yes
php5_cgi=no

php6_cli=no
php6_cgi=yes

php5_ver=5.2
php6_ver=5.3

And, i want to upgrade php6 from 5.3.29 to 5.4 but when i execute the following commands:
cd /usr/local/directadmin/custombuild
./build set php6_ver 5.4
./build update
./build php n

And php6 is updating but not to 5.4 is updating to 6.0.0 versión and finally has an error and is not updating, so i want to update to 5.4 not to 6.0.0 versión.
How can i update to 5.4
Thanks
 
Hi,

PHP 6 does not exist, and have never existed! You should edit options file and remove "php6_ver" if it is still present there.

Then run this if you want to upgrade to PHP 5.4.x:
Code:
./build set php5_ver 5.4
./build update
./build php n

You really should know that PHP 6 does not exist. Please visit http://php.net to learn about what versions is available.
 
Update php 5.3 cgi (installed as php 6 ) to 5.4

I have used this solution to run php 5.2 and 5.3 together:


You CAN have PHP 5.2 and 5.3 on the system. This trick will work with CustomBuild 1.2 (PHP5.2 as CLI and 5.3 as CGI (suPHP)):


Code:
cd /usr/local/directadmin/custombuild
./build set custombuild 1.2
./build update
mkdir -p custom/suphp
cp -pf configure/suphp/configure.php5 custom/suphp/configure.php6
perl -pi -e 's/php53/phprep/' versions.txt
perl -pi -e 's/php6/php53/' versions.txt
perl -pi -e 's/phprep/php6/' versions.txt
./build set php5_ver 5.2
./build set php6_cgi yes
./build set php5_cgi no
./build set php5_cli yes
#set php6-cgi (or cli) to yes in the options.conf
./build php n
mv -f /usr/local/php6 /usr/local/php6_old
ln -s /usr/local/php5 /usr/local/php6

Now PHP 5.3 will be installed as PHP6 in configuration files

Now I want to update my php 5.3 to 5.4 .
I have set php6 version to 5.4 and tried to update by these commands

./build php6_ver 5.4
./build versions

but the system replies that :
PHP6 (CGI) 5.3.29 to 6.0.0-dev update is available.


and when I use ./build update , php-6.0.0-dev.tar.gz will be downloaded.

How can I update my php 5.3 (that is installed as php 6 in configuration custombuild 1.2) to php 5.4 ?

thanks
 
Back
Top