• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Directive 'safe_mode' is deprecated in PHP 5.3

P

PierrickL

Guest
Hello,

I wrote a cron task in my crontab as root.
And when this task starts, i got this message :

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Warning: set_time_limit(): Cannot set time limit in safe mode in /var/www/vhosts/allzedeals.com/httpdocs/wp-content/plugins/rss-feeder/rss-importer.php on line 13
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/allzedeals.com/httpdocs/wp-includes/pomo/mo.php on line 212

What does that mean ?
This task worked before in my last server (but the last one was an mutualised server, and now it's a dedicated one).
Thanks for your help.
RegardS.

P.
 
Thanks for this answer.

Which PHP.ini should i modify ??
When i make find "php.ini",
Here are the results
/opt/psa/admin/conf/php.ini
/etc/php5/apache2/php.ini
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini

And how to correct the line 1 inf /etc/php5/cli/conf.d/imap.ini.

Here is the content of this file :
# configuration for php Imap module
extension=imap.so

Thanks for your help.
 
Ok. it works.
Here are the answers of my questions :
The php.ini is the file located here :
/etc/php5/cli/php.ini

To correct the first line i substitute # by //

And everything works great !

Thanks for your help.
 
Fix

In the upgrade from 10.2 to 10.3 the php.ini (etc/php.ini) file was changed to turn safe_mode On again. I had turned it off in here last upgrade which upgraded the php version where this all first started.

My cron jobs now don't give this error.

Something we will need to keep an eye on when upgrading again, unless someone clicks????

Grant
 
Back
Top