[Pkg-owncloud-commits] [owncloud-doc] 32/40: add page page on installing php 5.5 on rhel 7

David Prévot taffit at moszumanska.debian.org
Thu Dec 17 19:22:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.2.2RC1
in repository owncloud-doc.

commit 2259166e33359c3695e589549cdb7a6703dfbe92
Author: Carla Schroder <carla at owncloud.com>
Date:   Thu Dec 10 14:32:34 2015 -0800

    add page page on installing php 5.5 on rhel 7
---
 admin_manual/installation/index.rst               |  1 +
 admin_manual/installation/php_54_installation.rst |  4 +-
 admin_manual/installation/php_55_installation.rst | 81 +++++++++++++++++++++++
 3 files changed, 84 insertions(+), 2 deletions(-)

diff --git a/admin_manual/installation/index.rst b/admin_manual/installation/index.rst
index 6f847c9..88023e0 100644
--- a/admin_manual/installation/index.rst
+++ b/admin_manual/installation/index.rst
@@ -13,6 +13,7 @@ Installation
    source_installation
    appliance_installation
    php_54_installation
+   php_55_installation
    selinux_configuration
    nginx_configuration   
    ucs_installation
diff --git a/admin_manual/installation/php_54_installation.rst b/admin_manual/installation/php_54_installation.rst
index 7ef38a5..3361a12 100644
--- a/admin_manual/installation/php_54_installation.rst
+++ b/admin_manual/installation/php_54_installation.rst
@@ -31,7 +31,7 @@ Activate the new PHP version permanently::
  
 Disable loading the old PHP 5.3 Apache module:: 
 
- mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf/old
+ mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.old
  
 You should now have a /etc/httpd/conf.d/php54-php.conf file, which loads the 
 correct PHP 5.4 module for Apache.
@@ -65,7 +65,7 @@ Activate the new PHP version permanently::
  
 Disable loading the old PHP 5.3 Apache module:: 
 
- mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf/old
+ mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.old
  
 You should now have a /etc/httpd/conf.d/php54-php.conf file, which loads the 
 correct PHP 5.4 module for Apache.
diff --git a/admin_manual/installation/php_55_installation.rst b/admin_manual/installation/php_55_installation.rst
new file mode 100644
index 0000000..4e00d97
--- /dev/null
+++ b/admin_manual/installation/php_55_installation.rst
@@ -0,0 +1,81 @@
+=========================================
+Installing PHP 5.5 on RHEL 7 and CentOS 7
+=========================================
+
+PHP 5.4 has been end-of-life since September 2015 and is no longer supported by the PHP team. RHEL 7 still ships with PHP 5.4, and Red Hat supports it. ownCloud also supports PHP 5.4, so upgrading is not required. However, it is highly recommended to upgrade to PHP 5.5+ for best security and performance. 
+
+**Before upgrading, evaluate all of your PHP apps for compatibility with 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
+ 
+Then install PHP 5.5 and these modules::
+
+ yum install php55 php55-php php55-php-gd php55-php-mbstring
+
+You must also install the updated database module for your database. This installs the new PHP 5.5 module for MySQL/MariaDB:: 
+ 
+ yum install php55-php-mysqlnd
+ 
+Activate the new PHP version permanently::
+ 
+ source /opt/rh/php55/enable
+ 
+Disable loading the old PHP Apache module by changing its name. Look in ``/etc/httpd/conf.d/`` to verify the module name:: 
+
+ mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.old 
+ 
+Copy the PHP 5.5 Apache modules from /opt/rh/php55/::
+
+ 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/libphp-php55.so /etc/httpd/modules/
+
+Then restart Apache::
+ 
+ service httpd restart
+
+Verify with ``phpinfo`` that your Apache server is using PHP 5.5 and loading the correct modules; see :ref:`label-phpinfo` 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
+ 
+Then install PHP 5.5 and these modules::
+
+ yum install php55 php55-php php55-php-gd php55-php-mbstring
+
+You must also install the updated database module for your database. This installs the new PHP 5.5 module for MySQL/MariaDB:: 
+ 
+ yum install php55-php-mysqlnd
+ 
+Activate the new PHP version permanently::
+ 
+ source /opt/rh/php55/enable
+ 
+Disable loading the old PHP Apache module by changing its name. Look in /etc/httpd/conf.d/ to verify the module name:: 
+
+ mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.old 
+ 
+Copy the PHP 5.5 Apache modules from /opt/rh/php55/::
+
+ 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/libphp-php55.so /etc/httpd/modules/
+
+Then restart Apache::
+ 
+ service httpd restart
+
+Verify with ``phpinfo`` that your Apache server is using PHP 5.5 and loading the correct modules; see :ref:`label-phpinfo` to learn how to use phpinfo.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list