• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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