PHP 5.6 on CentOS/RHEL 7.1 and 6.7 via Yum
Repo
CentOS/RHEL 7.x
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Install PHP 5.6
yum install php56w
yum-plugin-replace
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace yum replace php-common --replace-with=php56w-common
Packages
\begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{|l|l|} \hline Package & Provides \\ \hline php56w & mod\_php, php56w-zts \\ \hline php56w-bcmath & \\ \hline php56w-cli & php-cgi, php-pcntl, php-readline \\ \hline php56w-common & php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-ereg,,php-exif, php-fileinfo, php-filter, php-ftp, php-gettext, php-gmp,,php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre,,php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection,,php-session, php-shmop, php-simplexml, php-sockets, php-spl,,php-tokenizer, php-zend-abi, php-zip, php-zlib \\ \hline php56w-dba & \\ \hline php56w-devel & \\ \hline php56w-embedded & php-embedded-devel \\ \hline php56w-enchant & \\ \hline php56w-fpm & \\ \hline php56w-gd & \\ \hline php56w-imap & \\ \hline php56w-interbase & php\_database, php-firebird \\ \hline php56w-intl & \\ \hline php56w-ldap & \\ \hline php56w-mbstring & \\ \hline php56w-mcrypt & \\ \hline php56w-mssql & \\ \hline php56w-mysql & php-mysqli, php\_database \\ \hline php56w-mysqlnd & php-mysqli, php\_database \\ \hline php56w-odbc & php-pdo\_odbc, php\_database \\ \hline php56w-opcache & php56w-pecl-zendopcache \\ \hline php56w-pdo & \\ \hline php56w-pear & \\ \hline php56w-pecl-apcu & \\ \hline php56w-pecl-gearman & \\ \hline php56w-pecl-geoip & \\ \hline php56w-pecl-imagick & \\ \hline php56w-pecl-memcache & \\ \hline php56w-pecl-xdebug & \\ \hline php56w-pgsql & php-pdo\_pgsql, php\_database \\ \hline php56w-phpdbg & \\ \hline php56w-process & php-posix, php-sysvmsg, php-sysvsem, php-sysvshm \\ \hline php56w-pspell & \\ \hline php56w-recode & \\ \hline php56w-snmp & \\ \hline php56w-soap & \\ \hline php56w-tidy & \\ \hline php56w-xml & php-dom, php-domxml, php-wddx, php-xsl \\ \hline php56w-xmlrpc & \\ \hline \end{tabular} \end{table}
Opcode Caches
yum install php56w-opcache