• 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!
  • 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.

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