PHP Safe Mode Conflict

2 posts by 2 authors in: Forums > CMS Builder
Last Post: May 6, 2013   (RSS)

By adesign - May 6, 2013

I am webmaster for a client whose ISP uses a shared server web hosting environment. Suddenly last week the CMS Builder driven site went down and the following error message appeared when accessing the site:

"Please disable the 'safe_mode' setting in php.ini. (safe_mode has been removed from the latest PHP versions and it's use is highly discouraged by the authors of PHP - read more)"

I have found a couple of similar issues on this forum and, as in those cases, the problem appears to be a server side issue. The ISP claims they have not upgraded  PHP or made any other server level changes. They seem to think the problem is on our end even though we haven't changed anything. Since this site is hosted on a shared server, I do not have access to PHP.ini and am relying on the ISP to resolve the issue. So far they are unresponsive. Is there anything I can do from within the CMSAdmin directory to work around this problem?

By Jason - May 6, 2013

Hi,

safe_mode is a PHP configuration setting that needs to be disabled in order for CMSB to work.  There isn't anything in our files that would turn this setting on. Here is a simple way to demonstrate the issue to the host.

  1. create a new PHP file called phpinfo.php and upload it to the root of the site (ie, outside of the CMS admin folder)
  2. Add this line of code as the only content on the page: <?php phpinfo(); ?>
  3. Go to this page through your web browser.  It will display all of the servers PHP configuration settings.  Do a search for safe_mode
  4. You should see it having a value of "On".  This means it is enabled.
  5. Send a link to this page to your host and ask them to disable safe_mode for you.

Please let me know if there's anything else you need.

Hope this helps,

---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/