Random header image

Tiplet: Disabling PHP Safe Mode and open_basedir in DirectAdmin through the control panel

One of my many tasks on a daily basis is checking up on various web sites and the servers they're hosted on. I needed to disable Safe Mode for a WordPress but, for the life of me, I couldn't find an easy way to do it via the appropriate Reseller login. (I read a blog entry on lampdocs but a crucial screenshot was missing and the other instructions weren't very helpful without it!)

As it turns out, it's as simple as three mouseclicks. In order to disable Safe Mode and open_basedir you need to log into the DA control panel as the admin (NOT the reseller user). From there, there's a menu option called "PHP SafeMode Configuration" in the Extra Features section - you can set the defaults for new sites, plus selectively enable/disable PHP Safe Mode and open_basedir restrictions for existing sites in a couple of mouseclicks. πŸ™‚

This feature's been present since at least 1.33.7; I'm currently adminning a server running 1.34.4 and the menu option is definitely still there. Hopefully this saves some fellow webmasters some hassle messing around with custom php.ini or VirtualHost containers πŸ™‚

One Comment

  1. Margreet says:

    Tnx. Your blog has saved me a lot of work! I knew there had to be an easy solution to the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via email. You can also subscribe without commenting.

I footnotes