Skip to content

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 <josh.t.richards@gmail.com>
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