-
Notifications
You must be signed in to change notification settings - Fork 2k
(occ command) Adds apc.enable_cli instructions #10670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
(occ command) Adds apc.enable_cli instructions #10670
Conversation
Mentioned elsewhere in the manual (for cron and the updater), but not mentioned in the occ command section. Since this triggers an exception, let's help people solve the problem themselves. Signed-off-by: Josh Richards <[email protected]>
@@ -12,6 +12,16 @@ setting, and more. | |||
run it as your HTTP user** to ensure that the correct permissions are maintained | |||
on your Nextcloud files and directories. | |||
|
|||
.. 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.:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldnt this only apply if apcu is actually enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to the better performance with APCu, most people have it enabled.
Is there a problem if the APCu module is enabled on CLI but not used because it's not enabled in Nextcloud?
Please take screenshots of the locally compiled documentation webpage, not the markdown preview. Your Note will look very different in the real documentation. |
@joshtrichards could you rebase the PR? |
The proper setup of
apc.enable_cli
is mentioned elsewhere in the manual (for cron and the updater), but not mentioned in the occ command section. Since this triggers an exception, let's help people solve the problem themselves.☑️ Resolves
🖼️ Screenshots