For those who need an updated PHP5 version on their Centos 6.2 x86_64 webserver, I have compiled them and put them here for you to download.
First download all the RPM’s you need to a directory (such as /tmp). After downloading, type (in the same directory):
yum --nogpgcheck install php-*.rpm
Then restart the apache webserver:
service apache restart
Up to version 5.2.17 they can be used for a Centos 5 server installation. Version 5.3.8 and higher are for a Centos 6 server installation.
In the past I compiled these because Centos 5.3 which has PHP 5.1.6 does not work with open_basedir restrictions and symlinks. Version 5.2.9 did.
I have taken the standard Centos 6.2 php srpm files (php-5.3.3-3.el6_1.3.src.rpm) and installed them. After that I updated the php version to 5.3.8 in the php.spec and removed all patches which did not apply cleanly or were already applied to the php5 source.
You can use the src.rpm’s to compile for an i386 machine.
These rpm’s are not tested on Redhat Enterprise Linux but they might just work.
Are you using phpMyAdmin and getting the “mcrypt extension is missing” error? Add $cfg['McryptDisableWarning'] = 'true'; to the config.inc.php file to disable the error message.
If what I have made benefited you (or your customer or employer) in some way, please make a donation. Your donation will be greatly appreciated. Any amount is accepted:
Download
You can download PHP 5.4.3 x86_64 rpms here.
Or use the wget list:
wget http://atoomnet.net/php/php-5.4.3/php-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-bcmath-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-cli-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-common-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-dba-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-devel-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-embedded-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-enchant-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-gd-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-imap-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-intl-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-ldap-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-mbstring-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-mysql-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-odbc-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-pdo-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-pgsql-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-process-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-pspell-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-recode-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-snmp-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-soap-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-tidy-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-xml-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-xmlrpc-5.4.3-1.el6.x86_64.rpm wget http://atoomnet.net/php/php-5.4.3/php-zts-5.4.3-1.el6.x86_64.rpm
Looking for older releases? Go to the download archive.
Getting the following error when upgrading 5.3 to PHP 5.4?
error: Failed dependencies: php(api) = 20090626 is needed by (installed) php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64 php(zend-abi) = 20090626 is needed by (installed) php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
Uninstall the PECL rpm and use the PECL command to install (in this case) APC. (pecl install apc)
However, APC 3.1.9 and PHP 5.4 seems to crash apache after a while. Try installing APC from the latest development version:
cd /tmp svn co http://svn.php.net/repository/pecl/apc/trunk php-apc cd php-apc phpize ./configure make make install
Thanks a million….
Dan
Thanks
This came in handy for me.
wget -r –reject “index.html*” http://atoomnet.net/php/php-5.2.17/
What version of libpq is the php-pgsql compiled against ?
postgresql-libs-8.4.9-1.el6_1.1.x86_64
I got this error:
httpd is needed by php-5.4.0-1.el6.x86_64
httpd-mmn = 20051115 is needed by php-5.4.0-1.el6.x86_64
Also I got this errors:
file /etc/php.ini from install of php-common-5.4.0-1.el6.x86_64 conflicts with file from package php-common-5.3.3-3.el6_1.3.x86_64
file /usr/lib64/php/modules/curl.so from install of php-common-5.4.0-1.el6.x86_64 conflicts with file from package php-common-5.3.3-3.el6_1.3.x86_64
file /usr/lib64/php/modules/fileinfo.so from install of php-common-5.4.0-1.el6.x86_64 conflicts with file from package php-common-5.3.3-3.el6_1.3.x86_64
file /usr/lib64/php/modules/json.so from install of php-common-5.4.0-1.el6.x86_64 conflicts with file from package php-common-5.3.3-3.el6_1.3.x86_64
file /usr/lib64/php/modules/phar.so from install of php-common-5.4.0-1.el6.x86_64 conflicts with file from package php-common-5.3.3-3.el6_1.3.x86_64
file /usr/lib64/php/modules/zip.so from install of php-common-5.4.0-1.el6.x86_64 conflicts with file from package php-common-5.3.3-3.el6_1.3.x86_64
Only one php version can be installed at the same time.