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

Can I turn PHP safemode off?

Discussion in 'Plesk for Linux - 8.x and Older' started by caponica, Apr 9, 2008.

  1. caponica

    caponica Guest

    0
     
    Hi,

    does anyone know if there is an implication for Plesk 8.3 if I set
    safe_mode = Off

    in my php.ini file?

    I have no intention of using safe mode for any of the domains we run - and all of the domains on the server are in-house so I'm not overly concerned about cross-site scripting.

    I know I can go through and change it for all domains, but I'd rather just set it once in php.ini and be done with the @£$% thing - safe mode causes far more problems than it solves for in-house servers!

    Thanks in advance!


    C
     
  2. 64bithost.com

    64bithost.com Regular Pleskian

    25
    57%
    Joined:
    Jul 30, 2007
    Messages:
    182
    Likes Received:
    0
    PHP Safe Mode Off

    Go into SETUP for the domain and find PHP. SAFE MODE OFF should be right next to it

    - Chris

    there is not a current global option
     
  3. caponica

    caponica Guest

    0
     
    Hi,

    I know that I can change the setting per domain within Plesk and will look into doing that if there is no other option.

    However, my real question is this: If I edit php.ini and set "safe_mode = Off" will it break Plesk?

    The reason I ask is that we have a number of things on the server that do NOT use Plesk (batch jobs, etc) and, now that Plesk has (somewhat heavy handedly) said that Safe_mode should default to On we either need to:
    a) Turn it back off (in php.ini) if Plesk is ok with that
    or
    b) go through and edit ALL of our php batch scripts to force safe mode AND set Safe_mode=Off for all of our domains in Plesk.

    Hopefully you can see why I am looking to follow route (a) instead of (b)!

    C
     
  4. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    You can change PHP safe_mode through Plesk, so you wouldn't need to edit any config files by hand.

    But yeah, you can set safe_mode to off in php.ini if you really want to. Plesk PHP configurator does turn it on globablly, so you might have to set it to off again if a Plesk update turns it on again.
     
  5. caponica

    caponica Guest

    0
     
    This is very confusing...

    @breun: I thought that Plesk turns Safe_mode ON by default. So everything you said seems backwards to me... and there was me thinking that I understood things. At least a little.

    HELP!
     
  6. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    I'm sorry. I meant Off. I corrected my previous post.
     
  7. caponica

    caponica Guest

    0
     
    OK, that makes more sense!

    Thanks for the help :)
     
  8. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    SURE you can change it globally from the ini files..
    It will not harm plesk - Plesk simply puts its stuff in httpd.include of each host,
    if you turn off safe mode.. No harm in turning it off twice :)

    -t
     
Loading...