Linux – CentOS replacement for PHP development machine

centoscentos6linuxPHPphp5

I'm just starting learning Linux. I'm using CentOS 6.3 and i really like it. However I need PHP 5.4, currently not available for CentOS. I've read that CentOS, for its very own nature, doesn't update packages frequently.

Which distribution would you suggests for replacing CentOS and let me enjoy latest version of both Apache/PHP?

Best Answer

Don't give up on CentOS just yet!

A common process for resolving this problem is to tap into the REMI repository in order to obtain current PHP and MYSQL packages.

This should satisfy your request and still keep things manageable via Yum.

Instructions:

You will need the EPEL repository first. Then the REMI files.

wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

That's all in order to get the repo. For PHP, something like:

yum --enablerepo=remi,remi-test install nginx php php-fpm php-common php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml
Related Topic