mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #848 from nextcloud/bugfix/noid/no-more-5.6
Remove all mentions of php 5.6 and below
This commit is contained in:
@@ -19,7 +19,7 @@ filesystem.
|
||||
System configuration
|
||||
--------------------
|
||||
|
||||
* Make sure that the latest version of PHP (at least 5.6.6) is installed
|
||||
* Make sure that the latest version of PHP is installed
|
||||
* Disable user quotas, which makes them unlimited
|
||||
* Your temp file or partition has to be big enough to hold multiple
|
||||
parallel uploads from multiple users; e.g. if the max upload size is 10GB and
|
||||
|
||||
@@ -219,8 +219,7 @@ These instructions are adaptable for any distro that does not package the
|
||||
supported version, or that does not package Redis at all, such as SUSE Linux
|
||||
Enterprise Server and Red Hat Enterprise Linux.
|
||||
|
||||
The Redis PHP module must be at least version 2.2.6. Please note that
|
||||
the Redis PHP module versions 2.2.x will only work for PHP 5.6.x.
|
||||
The Redis PHP module must be at least version 2.2.6.
|
||||
|
||||
For PHP 7.0 and PHP 7.1 use Redis PHP module 3.1.x or later.
|
||||
|
||||
|
||||
@@ -55,9 +55,9 @@ The HTTP user is different on the various Linux distributions:
|
||||
|
||||
If your HTTP server is configured to use a different PHP version than the
|
||||
default (/usr/bin/php), ``occ`` should be run with the same version. For
|
||||
example, in CentOS 6.5 with SCL-PHP56 installed, the command looks like this::
|
||||
example, in CentOS 6.5 with SCL-PHP70 installed, the command looks like this::
|
||||
|
||||
sudo -u apache /opt/rh/php56/root/usr/bin/php /var/www/html/nextcloud/occ
|
||||
sudo -u apache /opt/rh/php70/root/usr/bin/php /var/www/html/nextcloud/occ
|
||||
|
||||
.. note:: Although the following examples make use of the ``sudo -u ... /path/to/php /path/to/occ`` method, your environment may require use of a different wrapper utility than ``sudo`` to execute the command as the appropriate user. Other common wrappers:
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ Installation
|
||||
command_line_installation
|
||||
apps_management_installation
|
||||
apps_supported
|
||||
php_56_installation
|
||||
php_70_installation
|
||||
selinux_configuration
|
||||
nginx
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
.. _label-php56installation:
|
||||
|
||||
=============================================
|
||||
Installing PHP 5.6 on RHEL 6/7 and CentOS 6/7
|
||||
=============================================
|
||||
|
||||
Red Hat Enterprise Linux and CentOS 6 still ship with PHP 5.3. Nextcloud
|
||||
requires PHP 5.6 or better. There are several third-party repositories that
|
||||
supply PHP 5.6, 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.6 from SCL. First you must use
|
||||
your Subscription Manager to enable SCL in RHEL 6::
|
||||
|
||||
subscription-manager repos --enable rhel-server-rhscl-6-eus-rpms
|
||||
|
||||
For RHEL 7::
|
||||
|
||||
subscription-manager repos --enable rhel-server-rhscl-7-eus-rpms
|
||||
|
||||
Then install PHP 5.6 and these modules::
|
||||
|
||||
yum install rh-php56 rh-php56-php rh-php56-php-gd rh-php56-php-mbstring
|
||||
|
||||
You must also install the updated database module for your database. This
|
||||
installs the new PHP 5.6 module for MySQL/MariaDB::
|
||||
|
||||
yum install rh-php56-php-mysqlnd
|
||||
|
||||
If you are using the Nextcloud LDAP app, you need this module::
|
||||
|
||||
yum install rh-php56-php-ldap
|
||||
|
||||
Disable loading the old PHP 5.3 Apache module::
|
||||
|
||||
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.off
|
||||
|
||||
Copy the PHP 5.6 Apache modules into place::
|
||||
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf /etc/httpd/conf.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-rh-php56-php.conf /etc/httpd/conf.modules.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/modules/librh-php56-php5.so /etc/httpd/modules/
|
||||
|
||||
Then restart Apache::
|
||||
|
||||
service httpd restart
|
||||
|
||||
Verify with :ref:`label-phpinfo` that your Apache server is using PHP 5.6 and loading
|
||||
the correct modules.
|
||||
|
||||
CentOS 6/7
|
||||
----------
|
||||
|
||||
First install the SCL repo::
|
||||
|
||||
yum install centos-release-scl
|
||||
|
||||
Then install PHP 5.6 and these modules::
|
||||
|
||||
yum install rh-php56 rh-php56-php rh-php56-php-gd rh-php56-php-mbstring
|
||||
|
||||
You must also install the updated database module for your database. This
|
||||
installs the new PHP 5.6 module for MySQL/MariaDB::
|
||||
|
||||
yum install rh-php56-php-mysqlnd
|
||||
|
||||
If you are using the Nextcloud LDAP app, you need this module::
|
||||
|
||||
yum install rh-php56-php-ldap
|
||||
|
||||
Disable loading the old PHP 5.3 Apache module::
|
||||
|
||||
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.off
|
||||
|
||||
Copy the PHP 5.6 Apache modules into place::
|
||||
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf /etc/httpd/conf.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-rh-php56-php.conf /etc/httpd/conf.modules.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/modules/librh-php56-php5.so /etc/httpd/modules/
|
||||
|
||||
Finally, restart Apache::
|
||||
|
||||
service httpd restart
|
||||
|
||||
Verify with :ref:`label-phpinfo` that your Apache server is using PHP 5.6 and loading
|
||||
the correct modules.
|
||||
@@ -2,9 +2,7 @@
|
||||
Installing PHP 7.0 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. Nextcloud 11+ requires PHP 5.6 or better, so upgrading to 5.6 is required. For more information see :ref:`label-php56installation`. However, it is highly recommended to upgrade to PHP 7.0+ for best security and performance.
|
||||
|
||||
**Before upgrading, evaluate all of your PHP apps for compatibility with PHP 7.0.**
|
||||
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. Nextcloud 14+ requires PHP 7.0 or newer, so upgrading to 7.0 is required.
|
||||
|
||||
RHEL 7 Upgrade to PHP 7.0
|
||||
-------------------------
|
||||
@@ -49,8 +47,6 @@ CentOS 7 Upgrade to PHP 7.0
|
||||
|
||||
To upgrade to PHP 7.0, use the Red Hat Software Collections (SCL) repository.
|
||||
|
||||
**Before upgrading, evaluate all of your PHP apps for compatibility with PHP 7.0.**
|
||||
|
||||
Follow these steps to install PHP 7.0 from SCL. First install the SCL repository::
|
||||
|
||||
yum install centos-release-scl
|
||||
|
||||
@@ -84,7 +84,7 @@ If you get a result, the module is present.
|
||||
|
||||
Required:
|
||||
|
||||
* PHP (>= 5.6, 7.0, 7.1 or 7.2)
|
||||
* PHP (>= 7.0, 7.1 or 7.2)
|
||||
* PHP module ctype
|
||||
* PHP module dom
|
||||
* PHP module GD
|
||||
@@ -406,12 +406,6 @@ ini file. This can be the case, for example, for the ``date.timezone`` setting.
|
||||
php-fpm configuration notes
|
||||
---------------------------
|
||||
|
||||
**Security: Use at least PHP >= 5.6.6**
|
||||
|
||||
Due to `a bug with security implications <https://bugs.php.net/bug.php?id=64938>`_
|
||||
in older PHP releases with the handling of XML data you are highly encouraged to run
|
||||
at least PHP 5.6.6 when in a threaded environment.
|
||||
|
||||
**System environment variables**
|
||||
|
||||
When you are using ``php-fpm``, system environment variables like
|
||||
|
||||
Reference in New Issue
Block a user