1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Directive 'safe_mode' is deprecated in PHP 5.3

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by PierrickL, Jun 27, 2011.

  1. PierrickL

    PierrickL Guest

    0
     
    Hello,

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

    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.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
  3. PierrickL

    PierrickL Guest

    0
     
    Thanks for this answer.

    Which PHP.ini should i modify ??
    When i make find "php.ini",
    Here are the results
    And how to correct the line 1 inf /etc/php5/cli/conf.d/imap.ini.

    Here is the content of this file :
    Thanks for your help.
     
  4. PierrickL

    PierrickL Guest

    0
     
    Ok. it works.
    Here are the answers of my questions :
    The php.ini is the file located here :
    To correct the first line i substitute # by //

    And everything works great !

    Thanks for your help.
     
  5. gruntly0007

    gruntly0007 New Pleskian

    22
    73%
    Joined:
    Dec 30, 2007
    Messages:
    17
    Likes Received:
    0
    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
     
Loading...