PHP 5.4.0 released!

safe_mode was deprecated from php5.3 and is removed in 5.4, there is no way you can build it with or without safe_mode, simply because its not in it. When you use an old php.ini file remove this when upgrading from php 5.3 always use the new ini file for php5.4 not the old one.
 
The support was added 3 days ago :)

Oh, because I somehow still see this in custombuild 1.2:
Code:
        if [ "${PHP5_VER_OPT}" = "5.4" ]; then
                echo "There is no ionCube loader available for PHP 5.4"
 
Last edited:
Hello,

I've updated 1.1 and 1.2 on files1.directadmin.com, and added IonCube 4.2.1.
Please allow 24 hours for propagation to the other files mirrors.

John
 
I got this:


[root@server ~]# cd /usr/local/directadmin/custombuild
[root@server custombuild]# ./build update
--2012-06-02 21:15:29-- http://files5.directadmin.com/services/custombuild/1.1/custombuild.tar.gz
Resolving files5.directadmin.com... failed: Name or service not known.
wget: unable to resolve host address `files5.directadmin.com'
extracting custombuild.tar.gz for 1.1 ...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
--2012-06-02 21:15:30-- http://files5.directadmin.com/services/custombuild/versions.txt
Resolving files5.directadmin.com... failed: Name or service not known.
wget: unable to resolve host address `files5.directadmin.com'

Downloading versions.txt...
--2012-06-02 21:15:31-- http://files5.directadmin.com/services/custombuild/versions.txt
Resolving files5.directadmin.com... failed: Name or service not known.
wget: unable to resolve host address `files5.directadmin.com'
Downloaded file /usr/local/directadmin/custombuild/versions.txt does not exist or is empty after download

cwd is: /usr/local/directadmin/custombuild
Fileserver might be down, using the backup file server..
--2012-06-02 21:15:31-- http://69.30.193.202/services/custombuild/versions.txt
Connecting to 69.30.193.202:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5498 (5.4K) [text/plain]
Saving to: `/usr/local/directadmin/custombuild/versions.txt'

100%[================================================================================>] 5,498 --.-K/s in 0.1s

2012-06-02 21:15:32 (35.8 KB/s) - `/usr/local/directadmin/custombuild/versions.txt' saved [5498/5498]

File already exists: servers.txt
MD5 Checksum on servers.txt passed.
File already exists: httpd-2.2.22.tar.gz
MD5 Checksum on httpd-2.2.22.tar.gz passed.
File already exists: apr-1.4.6.tar.gz
MD5 Checksum on apr-1.4.6.tar.gz passed.
File already exists: apr-util-1.4.1.tar.gz
MD5 Checksum on apr-util-1.4.1.tar.gz passed.
File already exists: httpd_2
File already exists: httpd_2_freebsd
File already exists: httpd_2_debian
File already exists: mime.types
File already exists: mod_perl-2.0.4.tar.gz
MD5 Checksum on mod_perl-2.0.4.tar.gz passed.
File already exists: curl-7.26.0.tar.gz
MD5 Checksum on curl-7.26.0.tar.gz passed.
File already exists: pcre-8.20.tar.gz
MD5 Checksum on pcre-8.20.tar.gz passed.
File already exists: libmcrypt-2.5.8.tar.gz
MD5 Checksum on libmcrypt-2.5.8.tar.gz passed.
File already exists: mhash-0.9.9.9.tar.gz
MD5 Checksum on mhash-0.9.9.9.tar.gz passed.
File already exists: freetype-2.4.9.tar.gz
MD5 Checksum on freetype-2.4.9.tar.gz passed.
File already exists: libiconv-1.14.tar.gz
MD5 Checksum on libiconv-1.14.tar.gz passed.
File already exists: libxml2-2.7.6.tar.gz
MD5 Checksum on libxml2-2.7.6.tar.gz passed.
File already exists: libxslt-1.1.26.tar.gz
MD5 Checksum on libxslt-1.1.26.tar.gz passed.
File already exists: icu4c-4_8_1_1-src.tgz
MD5 Checksum on icu4c-4_8_1_1-src.tgz passed.
File already exists: php-5.2.17.tar.gz
MD5 Checksum on php-5.2.17.tar.gz passed.
File already exists: php-5.2.17-mail-header.patch
MD5 Checksum on php-5.2.17-mail-header.patch passed.
File already exists: webalizer-2.23-05-src.tgz
File already exists: suphp-0.7.1.tar.gz
MD5 Checksum on suphp-0.7.1.tar.gz passed.
File already exists: dovecot-2.1.7.tar.gz
MD5 Checksum on dovecot-2.1.7.tar.gz passed.
File already exists: dovecot.boot
File already exists: dovecot.boot.freebsd
File already exists: dovecot.boot.debian
File already exists: dovecot.conf
File already exists: exim.conf.dovecot.patch
MD5 Checksum on exim.conf.dovecot.patch passed.
File already exists: autoconf-2.68.tar.gz
MD5 Checksum on autoconf-2.68.tar.gz passed.
File already exists: m4-1.4.16.tar.gz
MD5 Checksum on m4-1.4.16.tar.gz passed.
File already exists: automake-1.11.1.tar.gz
MD5 Checksum on automake-1.11.1.tar.gz passed.
File already exists: libtool-2.4.tar.gz
MD5 Checksum on libtool-2.4.tar.gz passed.
[root@server custombuild]#

Why ?
 
files5 resolves for me; perhaps you've got a problem with nameserver(s) in your resolv.conf file.

Jeff
 
anyone gotten APC to work on php 5.4?
 
Last edited:
when updating from 5.2 cli to 5.3 cgi my errors got solved with.


perl -pi -e 's/^register_global/;register_global/' /usr/local/etc/php5/cgi/php.ini
perl -pi -e 's/^open_basedir/;open_basedir/' /usr/local/etc/php5/cgi/php.ini
perl -pi -e 's/^allow_call_time_pass_reference/;allow_call_time_pass_reference/' /usr/local/etc/php5/cgi/php.ini


(error was that install got broken at pear install point)

greetingss Franco
 
When I recompile php 5.4.6, there is no problems, and everything is working fine. However, when I recompile php 5.4.6 in custombuild, I get this warning:

Code:
configure: WARNING: unrecognized options: --enable-force-cgi-redirect, --enable-fastcgi, [B]--enable-magic-quotes[/B]

My question is about "--enable-magic-quotes" wich I has set in bold text. Is this a bug and/or setting in custombuild that need to be changed? magic quotes is removed from php 5.4.x. Please make change to this in custombuild if needed.
 
We use the same configure.php5 files for multiple versions of php 5.x.
I'm guessing they've dropped that option in 5.4, but the older versions of php still need it, hence no harm is done by leaving it (other than warnings), so you should be able to ignore it.

John
 
Please help. I am upgrading a server from php 5.3.x to php 5.4.x. It works fine. But now I am recompiling the modules. When I do this:

Code:
[root@server ~]# find / -name phpize
/usr/local/php5/bin/phpize
/usr/local/bin/phpize

Then I do this:
Code:
[root@server imagick-3.1.0RC2]# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626

But those Api version is wrong! In my phpinfo page running php 5.4.6 I have these:
Code:
PHP API 	20100412 
PHP Extension 	20100525 
Zend Extension 	220100525 
Zend Extension Build 	API220100525,NTS 
PHP Extension Build 	API20100525,NTS

How can I update and correct the wrong version numbers I get when doing phpize?
 
More information:

Code:
[root@server /]# /usr/local/php5/bin/phpize --version
 Configuring for:
 PHP Api Version: 20100412
 Zend Module Api No: 20100525
 Zend Extension Api No: 220100525

 [root@server /]# /usr/local/bin/phpize --version
 Configuring for:
 PHP Api Version: 20090626
 Zend Module Api No: 20090626
 Zend Extension Api No: 220090626

As you can see, the versions is correct in the first path, but wrong in the last path.

Also when I do this:

Code:
[root@server ~]# php-config --version
 5.3.8

But I have upgraded the server to from php 5.3.16 to php 5.4.6, so that version is also wrong! I am using php as cgi/suphp
 
Here is more information: On the server wich has the problem mentioned in previous reply, both these to files exist:

/usr/local/php5/bin/php-config
/usr/local/bin/php-config

However on another server wich did not have these problems, only this path exist:
/usr/local/php5/bin/php-config

What can I do?
 
I think I fixed it. The server was a few years ago running php cli, then converted it to cgi/suphp. I think that is the reason for mentioned problems.

I deleted I deleted /usr/local/bin/php-config and /usr/local/bin/phpize - then I recompiled php in custombuild. And now it looks good with correct versions and path in phpize.
 
Hi,

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

I uncommented the line in the php.ini already.
Any suggestions?
 
false command !

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set php5_ver 5.4
./build php n

sorry your command in second post is false
true one :

Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.4
./build update
./build php n

REF
 
During updating i get a message that my options arent supported for php 5.4

Now when i want to start an cronjob i get this message
PHP Warning: PHP Startup: bz2: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0

How can i fix this even after apache recompile and rewrite_conf it isnt fixed :( ?
 
Last edited:
Back
Top