https://doc.owncloud.org/server/9.0/admin_manual/installation/php_55_installation.html#centos-7-upgrade-to-php-5-5
RHEL 7 Upgrade to PHP 5.5
To upgrade to PHP 5.5, you must use the Software Collections (SCL) repository to be in compliance with your RHEL support contract, and not any other third-party repository. Follow these steps to install PHP 5.5 from SCL. First you must use your Subscription Manager to enable SCL:subscription-manager repos --enable rhel-server-rhscl-7-eus-rpms
yum install php55 php55-php php55-php-gd php55-php-mbstring
yum install php55-php-mysqlnd
yum install php55-php-ldap
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php54.off
mv /etc/httpd/conf.modules.d/10-php.conf /etc/httpd/conf.modules.d/10-php54.off
cp /opt/rh/httpd24/root/etc/httpd/conf.d/php55-php.conf /etc/httpd/conf.d/
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-php55-php.conf /etc/httpd/conf.modules.d/
cp /opt/rh/httpd24/root/etc/httpd/modules/libphp55-php5.so /etc/httpd/modules/
service httpd restart
phpinfo
that your Apache server is using PHP 5.5 and loading the
correct modules; see PHP Version and Information to learn how to use phpinfo.CentOS 7 Upgrade to PHP 5.5¶
To upgrade to PHP 5.5, use the Red Hat Software Collections (SCL) repository.Before upgrading, evaluate all of your PHP apps for compatibility with PHP 5.5.
Follow these steps to install PHP 5.5 from SCL. First install the SCL repository:
yum install centos-release-scl
yum install php55 php55-php php55-php-gd php55-php-mbstring
yum install php55-php-mysqlnd
yum install php55-php-ldap
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php54.off
mv /etc/httpd/conf.modules.d/10-php.conf /etc/httpd/conf.modules.d/10-php54.off
cp /opt/rh/httpd24/root/etc/httpd/conf.d/php55-php.conf /etc/httpd/conf.d/
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-php55-php.conf /etc/httpdconf.modules.d/
cp /opt/rh/httpd24/root/etc/httpd/modules/libphp55-php5.so /etc/httpd/modules/
service httpd restart
phpinfo
that your Apache server is using PHP 5.5 and loading the
correct modules; see PHP Version and Information to learn how to use phpinfo
.
No hay comentarios:
Publicar un comentario