Open basedir

sifro

Verified User
Joined
Oct 3, 2010
Messages
26
[SOLVED] Open basedir

Hi,

I've created a new user called myuser and assigned some domains to it.
The problem is, when I try to access one of its domains, I get this error:

Warning: Unknown: open_basedir restriction in effect. File(/home/myuser/tracking/error_log) is not within the allowed path(s): (/home/admin/:/tmp:/var/tmp:/usr/local/lib/php/) in Unknown on line 0

Why is open_basedir set to /home/admin, if I'm accessing a domain of myuser in /home/myuser/?

I don't know if it's relevant, but:

- The server came with DA using fastcgi, and I switched to php apache module as soon as I started working with it using the custombuild scripts.
- Myuser has been imported through the admin backup feature from a different DA installation, where everything was working correctly.
- Disabling open_basedir from the "safe mode configuration" doesn't fix the issue (wtf?!)

EDIT: if I re-enable open-basedir (in the old server it was enabled) the file /usr/local/directadmin/data/users/simone/httpd.conf gets a section like this

<Directory /home/myuser/path/to/subdomain>
Options +Includes -Indexes


php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


php_admin_value open_basedir /home/myuser/:/tmp:/var/tmp:/usr/local/lib/php/


</Directory>

The error I get is the same


EDIT 2: sorry, my bad, there were issues with dns propagation and basically i was working on 2 different servers at the same time... ignore my question.
 
Last edited:
Back
Top