open_basedir restriction error on DirectAdmin

lkbryant

Verified User
Joined
Aug 16, 2005
Messages
283
Hi I was messing around with the php.ini file and set the open_basedir = 'directories i want to open'

and then i later realized on the DirectAdmin control panel, the place where it supposed to show the webmail menus such as Roundcube, Squirrelmail, are now giving me error Warning: file_exists(): open_basedir restriction in effect. File(/var/www/html/squirrelmail) is not within the allowed path(s): (.:/tmp:/usr/local/lib/php/:/usr/local/lsws/lsphp5/etc/) in /usr/local/directadmin/- on line 4 Warning: file_exists(): open_basedir restriction in effect. File(/var/www/html/webmail) is not within the allowed path(s): (.:/tmp:/usr/local/lib/php/:/usr/local/lsws/lsphp5/etc/) in /usr/local/directadmin/- on line 4 Warning: file_exists(): open_basedir restriction in effect. File(/var/www/html/roundcube) is not within the allowed path(s): (.:/tmp:/usr/local/lib/php/:/usr/local/lsws/lsphp5/etc/) in /usr/local/directadmin/- on line 4 MX Records



The problem is I am making changes to revert back to original state but changes aren't taking effect. It's as if the settings are cached or something.

So I tried restarting directadmin and litespeed but that didn't do the trick either.

So what am I missing here?

Which web server and php binary does directadmin use by default?

Is DA on a standalone web server?

Does DirectAdmin run off on httpd? which php.ini does DA use, and which php.ini does it use ie. /usr/local/lib/php.ini ?


Thanks
 
Last edited:
Here is a Fix

Hi!
i Had the same Problem.. But with phpMyAdmin..
you need to do that:
1)Open httpd.conf (nano),
2)Add this line at the end:
Code:
<Directory /var/www/html>
php_admin_value open_basedir none
</Directory>
3)Exit and save
4)Restart httpd and you are done.
OpenBasedir will be disabled for /var/www/html directory and sub-directories only.
Enjoy!
 
please help me i can't find the solutions using openlitespeed I have tried to disable open base via DirectAdmin root nothing worked
Warning: file_exists(): open_basedir restriction in effect. File(/patterns/) is not within the allowed path(s): (/home/admin/:/tmp:/var/tmp:/opt/alt/php74/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php74/lib/php/)
 
Back
Top