• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Plesks and Nextcloud and PHP

Detlef D.

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.64
Hello, I have a problem with Plesks and Nextcloud and PHP

I keep getting an email with the information

Re: Cron <linux1user@linux1> (/opt/plesk/php/8.3/bin/php -f 'cloud/nextcloud/occ' -- 'db:add-missing-indices') > /dev/null

Text: The current PHP memory limit is below the recommended value of 512MB.

However, 512M is already entered everywhere under the domain under PHP in the field memory_limit under all installed domains. I've already entered 1000M for testing purposes. The email keeps coming...

Where is the problem? Where do I have to change something?

cu Detlef
 
Hi Detlef,

The PHP settings for a domain are not applied in the cron environment. It will use the default php.ini memory_limit which should be 128M.

You can specify it for the cron task using -d 'memory_limit=1G':
Code:
(/opt/plesk/php/8.3/bin/php -d 'memory_limit=1G' -f 'cloud/nextcloud/occ' -- 'db:add-missing-indices') > /dev/null

Or you can edit the global php.ini for PHP 8.3. Tools & Settings > General Settings: PHP Settings > click on any PHP 8.3 handlers (php.ini is the same for all of them) > php.ini. Here you will update ``memory_limit = 128M``and then save. The next cron run will pick up the new memory_limit.
 
Not only cron; those settings are only applied to the respective fpm pool.
Generally, you can use /opt/plesk/php/8.3/bin/php -i to view the effective config and the files it got loaded from.
 
Or you can edit the global php.ini for PHP 8.3. Tools & Settings > General Settings: PHP Settings > click on any PHP 8.3 handlers (php.ini is the same for all of them) > php.ini. Here you will update ``memory_limit = 128M``and then save. The next cron run will pick up the new memory_limit.
Thank you
 
Back
Top