CustomBuild 1.2 (PHP5.2.17 as CLI and 5.4.4 as CGI (suPHP))

knightowl

Verified User
Joined
Oct 2, 2007
Messages
9
Hello,

When i try to build php 5.2.17 as CLI and php 5.4.4 as CGI (a in this thread) it will result into an error:


Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
make[1]: *** [install-pear-installer] Error 1
make: *** [install-pear] Error 2

When i try to fix this as in this thread it just gives the same error even when 'allow_call_time_pass_reference' is commented out in the php.ini wich is used.

Current setup is custombuild with php 5.2.17 as CLI.

Can anyone help me to resolve this?
 
Hello,

You should compile then them with PHP.INI located in different directories, so you could adjust the settings for every PHP version.

Code:
  --with-config-file-path=PATH
                          Set the path in which to look for php.ini [PREFIX/lib]
 
HI Alex,

Thanks for your reply but it does not solve my issue:

The file configure.php6 in the custombuild/suphp/ is having:
"--with-config-file-path=/usr/local/etc/php6/cgi" \

But custombuild is still going stuck

Installing php...
Installing PHP CLI binary: /usr/local/php5/bin/
Installing PHP CLI man page: /usr/local/php5/php/man/man1/
Installing PHP CGI binary: /usr/local/php5/bin/
Installing build environment: /usr/local/php5/lib/php/build/
Installing header files: /usr/local/php5/include/php/
Installing helper programs: /usr/local/php5/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php5/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/

Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
make[1]: *** [install-pear-installer] Error 1
make: *** [install-pear] Error 2
[root@server custombuild]#
 
I'd suppose configure.php6 is not used... and it seems to me that PHP is installed... Just make sure /usr/local/php5/bin/php and /usr/local/bin/php exist and are of those versions which you need.
 
What i did is the following:

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/php54/phprep/' versions.txt
perl -pi -e 's/php6/php54/' 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

(like discripted in the threads)


mv -f /usr/local/php6 /usr/local/php6_old
ln -s /usr/local/php5 /usr/local/php6
 
/usr/local/bin/php -v

PHP 5.2.17 (cli) (built: Jul 2 2012 21:53:49)
Copyright (c) 1997-2010 The PHP Group


/usr/local/php6/bin/php -v

Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0


/usr/local/php5/bin/php -v

Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
 
Probably something you have in your php.ini or possibly one of the php modules.
 
It's a 'standard' custombuild installation with php 5.2.17 ..... so what should there be wrong in the php.ini.??
 
in php.ini the following line is present.

allow_call_time_pass_reference = Off

Still doesnt let me install..
 
You need to comment it out not set it to off. The error is telling you the function does not exist so it needs to be removed.

;allow_call_time_pass_reference = Off

Code:
perl -pi -e 's/allow_call_time_pass_reference/;allow_call_time_pass_reference/' php.ini
 
Back
Top