Skip to content

(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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Jun 23, 2023

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

  • Fix (various) (it's a recurring issue in various repo Issues and the Help Forums)

🖼️ Screenshots

image

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.::
Copy link
Contributor

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?

Copy link
Contributor

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?

@szaimen szaimen added this to the Nextcloud 28 milestone Jun 24, 2023
@szaimen szaimen requested a review from ChristophWurst June 26, 2023 22:57
@ChristophWurst
Copy link
Member

Screenshots

Please take screenshots of the locally compiled documentation webpage, not the markdown preview. Your Note will look very different in the real documentation.

@susnux
Copy link
Contributor

susnux commented Nov 12, 2024

@joshtrichards could you rebase the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants