Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    422

    PHP safe mode on or off on shared cpanel server?

    Previously, it was recommended to set PHP safe mode to off on shared cPanel server due to alot of scripts won't be able to run if it is on.

    Is there any changes to this? Do you guys recommend PHP safe mode to be off or on on cPanel shared server?
    Jackson Yap
    APC Hosting
    http://www.apc.sg/

  2. #2
    Join Date
    Aug 2001
    Posts
    5,597
    considering it is not supported anymore i would not rely on it

  3. #3
    Join Date
    Mar 2012
    Location
    Tampa, FL =)
    Posts
    1,954
    PHP safe_mode hasn't ever protected a server.

  4. #4
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    422
    I see. So it is better to disable php functions on a server. Thanks!
    Jackson Yap
    APC Hosting
    http://www.apc.sg/

  5. #5
    Join Date
    Mar 2006
    Location
    Servers
    Posts
    1,590
    PHP safe_mode on shared hosting will cause you a lot of troubles, angry customers and support requests. On top of everything will kill most of the functionality of your hosting customer's scripts.
    QHoster.com - Web Hosting with DDoS Protection | Shared & Reseller in Europe/North America
    Linux/Windows RDP VPS 13 Locations : UK, US (5 states), Mexico, Canada, Bulgaria, Lithuania,
    Italy, France, Germany,Netherlands, Switzerland, Rissia, Singapore | OpenVPN/PPTP Enabled
    INSTANT | PayPal, Skrill, Payza, Bitcoin, WebMoney, Perfect Money, Ukash, CashU, paysafecard

  6. #6
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    422
    Hey WebHostDog,

    I agree on that. Thought they have made some favorable changes to PHP safe mode. Thanks!
    Jackson Yap
    APC Hosting
    http://www.apc.sg/

  7. #7
    For shared hosting environment, if you enable PHP safe mode then it may break some running third party PHP scripts like Drupal and erendipity of your clients. Hence, I would not recommend to turn it on on shared hosting environment. However, you can take an advantage of custom php.ini and turn it on OR off for particular account.

  8. #8
    Join Date
    Aug 2001
    Posts
    5,597
    We should not miss the most important point.

    Unless one wants to run an unsupported version, safe mode is not even available any more. It has been deprecated for the last four year and the current version does feature it at all.

  9. #9
    Join Date
    May 2012
    Posts
    79
    I would recommend upgrading to latest version PHP, rather than using deprecated functions like safemode.

  10. #10
    Join Date
    Apr 2003
    Location
    NC
    Posts
    3,093
    If you are interested in locking down php you should take a look at suhosin.
    John W, CISSP, C|EH
    MS Information Security and Assurance
    ITEagleEye.com - Server Administration and Security
    Yawig.com - Managed VPS and Dedicated Servers with VIP Service

  11. #11
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    422
    Yep true.

    Strange thing safe mode is still in cPanel.
    Jackson Yap
    APC Hosting
    http://www.apc.sg/

Similar Threads

  1. PHP Safe Mode - Do or Do Not?
    By lifewithcause in forum Hosting Security and Technology
    Replies: 16
    Last Post: 06-26-2012, 11:29 AM
  2. PHP Safe mode On or Off
    By LENOVOhost in forum Hosting Security and Technology
    Replies: 12
    Last Post: 11-08-2009, 01:11 AM
  3. PHP safe mode
    By wovut in forum Hosting Security and Technology
    Replies: 19
    Last Post: 01-03-2006, 05:48 PM
  4. PHP running on Safe mode and Normal mode.
    By 123x in forum Hosting Security and Technology
    Replies: 8
    Last Post: 12-09-2002, 07:00 PM
  5. CPanel and PHP Safe Mode
    By (SH)Saeed in forum Hosting Security and Technology
    Replies: 2
    Last Post: 05-09-2002, 10:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •