mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Adjust more mentions on php versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fac6419a71
commit
7896d26bb9
@ -21,7 +21,7 @@ filesystem.
|
||||
System Configuration
|
||||
--------------------
|
||||
|
||||
* Make sure that the latest version of PHP (at least 5.4.9) is installed
|
||||
* Make sure that the latest version of PHP (at least 5.6.6) 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
|
||||
|
||||
@ -16,24 +16,15 @@ if you prefer.**
|
||||
|
||||
A PHP opcache stores compiled PHP scripts so they don't need to be re-compiled
|
||||
every time they are called. PHP bundles the Zend OPcache in core since version
|
||||
5.5, so you don't need to install an opcache for PHP 5.5+.
|
||||
5.5, so you don't need to install an opcache manually.
|
||||
|
||||
If you are using PHP 5.4, which is the oldest supported PHP version for
|
||||
Nextcloud, you may install the Alternative PHP Cache (APC). This is both an
|
||||
opcache and data cache. APC has not been updated since 2012 and is essentially
|
||||
dead, and PHP 5.4 is old and lags behind later releases. If it is possible
|
||||
to upgrade to a later PHP release that is the best option.
|
||||
|
||||
Data caching is supplied by the Alternative PHP Cache, user (APCu) in PHP
|
||||
5.5+, Memcached, or Redis.
|
||||
Data caching is supplied by the Alternative PHP Cache, user (APCu), Memcached, or Redis.
|
||||
|
||||
Nextcloud supports multiple memory caching backends, so you can choose the type
|
||||
of memcache that best fits your needs. The supported caching backends are:
|
||||
|
||||
* `APC <http://php.net/manual/en/book.apc.php>`_
|
||||
A local cache for systems running PHP 5.4.
|
||||
* `APCu <https://pecl.php.net/package/APCu>`_, APCu 4.0.6 and up required.
|
||||
A local cache for systems running PHP 5.5 and up.
|
||||
A local cache for systems.
|
||||
* `Memcached <http://www.memcached.org/>`_
|
||||
Distributed cache for multi-server Nextcloud installations.
|
||||
* `Redis <http://redis.io/>`_, PHP module 2.2.5 and up required.
|
||||
@ -47,24 +38,6 @@ all possible config parameters).
|
||||
You may use both a local and a distributed cache. Recommended caches are APCu
|
||||
and Redis. After installing and enabling your chosen memcache, verify that it is
|
||||
active by running :ref:`label-phpinfo`.
|
||||
|
||||
APC
|
||||
---
|
||||
|
||||
APC is only for systems running PHP 5.4 and older. The oldest supported PHP
|
||||
version in Nextcloud is 5.4.
|
||||
|
||||
.. note:: RHEL 6 and CentOS 6 ship with PHP 5.3 and must be upgraded to PHP
|
||||
5.4 to run Nextcloud. See :doc:`../installation/php_54_installation`.
|
||||
|
||||
On Red Hat/CentOS/Fedora systems running PHP 5.4, install ``php-pecl-apc``. On
|
||||
Debian/Ubuntu/Mint systems install ``php-apc``. Then restart your Web server.
|
||||
|
||||
After restarting your Web server, add this line to your ``config.php`` file::
|
||||
|
||||
'memcache.local' => '\OC\Memcache\APC',
|
||||
|
||||
Refresh your Nextcloud admin page, and the cache warning should disappear.
|
||||
|
||||
APCu
|
||||
----
|
||||
@ -72,7 +45,7 @@ APCu
|
||||
PHP 5.5 and up include the Zend OPcache in core, and on most Linux
|
||||
distributions it is enabled by default. However, it does
|
||||
not bundle a data cache. APCu is a data cache, and it is available in most
|
||||
Linux distributions. On Red Hat/CentOS/Fedora systems running PHP 5.5 and up
|
||||
Linux distributions. On Red Hat/CentOS/Fedora systems running PHP 5.6
|
||||
install ``php-pecl-apcu``. On Debian/Ubuntu/Mint systems install ``php5-apcu``.
|
||||
On Ubuntu 14.04LTS, the APCu version is 4.0.2, which is too old to use with Nextcloud. Nextcloud requires 4.0.6+. You may install 4.0.7 from Ubuntu backports with this command::
|
||||
|
||||
@ -241,12 +214,9 @@ 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.5. Please note that
|
||||
the Redis PHP module versions 2.2.5 - 2.2.7 will only work for:
|
||||
|
||||
::
|
||||
|
||||
PHP version 6.0.0 or older
|
||||
PHP version 5.2.0 or newer
|
||||
the Redis PHP module versions 2.2.x will only work for PHP 5.6.x.
|
||||
|
||||
For PHP 7.0 and PHP 7.1 use Redis PHP module 3.1.x or later.
|
||||
|
||||
See `<https://pecl.php.net/package/redis>`_
|
||||
|
||||
|
||||
@ -55,9 +55,9 @@ The HTTP user is different on the various Linux distributions. See
|
||||
|
||||
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-PHP54 installed, the command looks like this::
|
||||
example, in CentOS 6.5 with SCL-PHP56 installed, the command looks like this::
|
||||
|
||||
sudo -u apache /opt/rh/php54/root/usr/bin/php /var/www/html/nextcloud/occ
|
||||
sudo -u apache /opt/rh/php56/root/usr/bin/php /var/www/html/nextcloud/occ
|
||||
|
||||
Running ``occ`` with no options lists all commands and options, like this
|
||||
example on Ubuntu::
|
||||
|
||||
@ -15,10 +15,9 @@ Cache Warnings
|
||||
configure a memcache if available." Nextcloud supports multiple php caching
|
||||
extensions:
|
||||
|
||||
* APC (PHP 5.4 only)
|
||||
* APCu (PHP 5.5+, minimum required PHP extension version 4.0.6)
|
||||
* APCu (minimum required PHP extension version 4.0.6)
|
||||
* Memcached
|
||||
* Redis (minimum required php extension version: 2.2.5)
|
||||
* Redis (minimum required PHP extension version: 2.2.5)
|
||||
|
||||
You will see this warning if you have no caches installed and enabled, or if
|
||||
your cache does not have the required minimum version installed; older versions
|
||||
|
||||
@ -10,7 +10,7 @@ group memberships, quotas, and sharing permissions just like any other Nextcloud
|
||||
user.
|
||||
|
||||
.. note:: The PHP LDAP module is required; this is supplied by ``php5-ldap`` on
|
||||
Debian/Ubuntu, and ``php-ldap`` on CentOS/Red Hat/Fedora. PHP 5.4+ is
|
||||
Debian/Ubuntu, and ``php-ldap`` on CentOS/Red Hat/Fedora. PHP 5.6+ is
|
||||
required in Nextcloud.
|
||||
|
||||
The LDAP application supports:
|
||||
@ -650,8 +650,7 @@ job which keeps the ``user-group-mappings`` up-to-date, and always in cache.
|
||||
Under normal circumstances, all users are never loaded at the same time.
|
||||
Typically the loading of users happens while page results are generated, in
|
||||
steps of 30 until the limit is reached or no results are left. For this to
|
||||
work on an oC-Server and LDAP-Server, **Paged Results** must be supported,
|
||||
which presumes PHP >= 5.4.
|
||||
work on an oC-Server and LDAP-Server, **Paged Results** must be supported.
|
||||
|
||||
Nextcloud remembers which user belongs to which LDAP-configuration. That means
|
||||
each request will always be directed to the right server unless a user is
|
||||
|
||||
@ -40,7 +40,7 @@ If you get a result, the module is present.
|
||||
|
||||
Required:
|
||||
|
||||
* php5 (>= 5.6)
|
||||
* php (>= 5.6, 7.0 or 7.1)
|
||||
* PHP module ctype
|
||||
* PHP module dom
|
||||
* PHP module GD
|
||||
@ -87,8 +87,7 @@ Recommended for specific apps (*optional*):
|
||||
For enhanced server performance (*optional*) select one of the following
|
||||
memcaches:
|
||||
|
||||
* PHP module apc
|
||||
* PHP module apcu
|
||||
* PHP module apcu (>= 4.0.6)
|
||||
* PHP module memcached
|
||||
* PHP module redis (>= 2.2.5, required for Transactional File Locking)
|
||||
|
||||
@ -363,11 +362,11 @@ ini file. This can be the case, for example, for the ``date.timezone`` setting.
|
||||
php-fpm Configuration Notes
|
||||
---------------------------
|
||||
|
||||
**Security: Use at least PHP => 5.5.22 or >= 5.6.6**
|
||||
**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.5.22 or 5.6.6 when in a threaded environment.
|
||||
at least PHP 5.6.6 when in a threaded environment.
|
||||
|
||||
**System environment variables**
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ structure placing the Nextcloud code in the Apache root directory. The
|
||||
following components were installed on each application server:
|
||||
|
||||
* Apache
|
||||
* PHP 5.4.x
|
||||
* PHP 5.6.x
|
||||
* PHP-GD
|
||||
* PHP-XML
|
||||
* PHP-MYSQL
|
||||
|
||||
@ -40,7 +40,7 @@ The :file:`appinfo/info.xml` contains metadata about the app:
|
||||
<ocsid>1234</ocsid>
|
||||
|
||||
<dependencies>
|
||||
<php min-version="5.4" max-version="5.5"/>
|
||||
<php min-version="5.6" max-version="7.1"/>
|
||||
<database>sqlite</database>
|
||||
<database>mysql</database>
|
||||
<command os="linux">grep</command>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user