Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions admin_manual/occ_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ The HTTP user is different on the various Linux distributions:
* The HTTP user and group in Arch Linux is http.
* The HTTP user in openSUSE is wwwrun, and the HTTP group is www.

.. note::
Since APCu is disabled by default for the command-line mode of PHP, it can cause issues with Nextcloud's ``occ`` command. Please make sure you set the ``apc.enable_cli`` parameter to ``1`` in your PHP CLI's ``php.ini`` configuration file or append ``--define apc.enable_cli=1`` each time you invoke ``occ`` - e.g.::
Comment thread
skjnldsv marked this conversation as resolved.
Outdated

sudo -u www-data php --define apc.enable_cli=1 occ config:list system
Comment thread
skjnldsv marked this conversation as resolved.
Outdated

If you fail to do this, you will receive output such as the following::
Comment thread
skjnldsv marked this conversation as resolved.
Outdated

An unhandled exception has been thrown:
OCP\\HintException: [0]: Memcache \\OC\\Memcache\\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Comment thread
skjnldsv marked this conversation as resolved.
Outdated

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-PHP70 installed, the command looks like this::
Expand Down
Loading