How to disable open_basedir in Directadmin server

How to disable open_basedir in Directadmin server

I got the following error in one of my websites which seems to be a problem with open_basedir restriction enabled in the server.

-----------
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/arunlal/public_html/wp-content/uploads/2013/08) is not within the allowed path(s): (/home/arunlal/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/arunlal/domains/mydomain.com/public_html/wp-includes/functions.php on line 1337

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/arunlal/public_html/wp-content/uploads/2013/08) is not within the allowed path(s): (/home/arunlal/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/arunlal/domains/mydomain.com/public_html/wp-includes/functions.php on line 1337
-----------

You should be able to login as “admin” to disable open_basedir restriction in Direct Admin panel.

1. Log into Direct Admin panel as admin
2. Click on "PHP SafeMode Configuration" under Extra Features tab
3. Disable Open BaseDir for the domain.

Done!!!

Related Links:
log file paths for Directadmin server
How to change Direct admin’s default port number

Post navigation

Arunlal Ashok

Linux Systems Architect at Endurance International Group. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

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