mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #1707 from owncloud/php54
install php 5.4 on rhel and centos 6
This commit is contained in:
@@ -7,14 +7,15 @@ Installation
|
||||
|
||||
system_requirements
|
||||
linux_installation
|
||||
command_line_installation
|
||||
installation_wizard
|
||||
appliance_installation
|
||||
command_line_installation
|
||||
apps_management_installation
|
||||
hiawatha_configuration
|
||||
nginx_configuration
|
||||
source_installation
|
||||
ucs_installation
|
||||
yaws_configuration
|
||||
appliance_installation
|
||||
php_54_installation
|
||||
selinux_configuration
|
||||
nginx_configuration
|
||||
ucs_installation
|
||||
hiawatha_configuration
|
||||
yaws_configuration
|
||||
macos_installation
|
||||
|
||||
82
admin_manual/installation/php_54_installation.rst
Normal file
82
admin_manual/installation/php_54_installation.rst
Normal file
@@ -0,0 +1,82 @@
|
||||
=========================================
|
||||
Installing PHP 5.4 on RHEL 6 and CentOS 6
|
||||
=========================================
|
||||
|
||||
Red Hat Enterprise Linux and CentOS 6 still ship with PHP 5.3. ownCloud
|
||||
requires PHP 5.4 or better. There are several third-party repositories that
|
||||
supply PHP 5.4, but you must use the Software Collections (SCL) repository to
|
||||
be in compliance with your RHEL support contract, and not any other third-party
|
||||
repository.
|
||||
|
||||
RHEL 6
|
||||
------
|
||||
|
||||
Follow these steps to install PHP 5.4 from SCL. First you must use
|
||||
your Subscription Manager to enable SCL::
|
||||
|
||||
subscription-manager repos --enable rhel-server-rhscl-6-eus-rpms
|
||||
|
||||
Then install PHP 5.4 and these modules::
|
||||
|
||||
yum install php54 php54-php php54-php-gd php54-php-mbstring
|
||||
|
||||
You must also install the updated database module for your database. This
|
||||
example installs the new PHP 5.4 module for MySQL/MariaDB::
|
||||
|
||||
yum install php54-php-mysqlnd
|
||||
|
||||
Activate the new PHP version permanently::
|
||||
|
||||
source /opt/rh/php54/enable
|
||||
|
||||
Disable loading the old PHP 5.3 Apache module::
|
||||
|
||||
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.
|
||||
|
||||
Then restart Apache::
|
||||
|
||||
service httpd restart
|
||||
|
||||
Verify with ``phpinfo`` that your Apache server is using PHP 5.4 and loading
|
||||
the correct modules; see
|
||||
https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#php-version-and-information to learn how to use ``phpinfo``.
|
||||
|
||||
CentOS 6
|
||||
--------
|
||||
|
||||
First install the SCL repo::
|
||||
|
||||
yum install centos-release-SCL
|
||||
|
||||
Then install PHP 5.4 and these modules::
|
||||
|
||||
yum install php54 php54-php php54-php-gd php54-php-mbstring
|
||||
|
||||
You must also install the updated database module. This installs the new PHP 5.4
|
||||
module for MySQL/MariaDB::
|
||||
|
||||
yum install php54-php-mysqlnd
|
||||
|
||||
Activate the new PHP version permanently::
|
||||
|
||||
source /opt/rh/php54/enable
|
||||
|
||||
Disable loading the old PHP 5.3 Apache module::
|
||||
|
||||
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.
|
||||
|
||||
Finally, restart Apache::
|
||||
|
||||
service httpd restart
|
||||
|
||||
Verify with ``phpinfo`` that your Apache server is using PHP 5.4 and loading
|
||||
the correct modules; see
|
||||
https://doc.owncloud.com/server/8.1/admin_manual/configuration_server/
|
||||
performance_tuning.html#php-version-and-information to learn how to use
|
||||
``phpinfo``.
|
||||
Reference in New Issue
Block a user