Intermittent open_basedir errors

Xtracy

Verified User
Joined
May 16, 2007
Messages
11
Hi,

On different sites on my server, the following error sometimes appears, after a refresh the page loads fine.

Warning: Unknown(): open_basedir restriction in effect. File(/usr/home/euro/domains/euro.eu/public_html/editpage.php) is not within the allowed path(s): (/home/peken/:/tmp:/usr/local/lib/php/) in Unknown on line 0

Warning: Unknown(/usr/home/euro/domains/euro.eu/public_html/editpage.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)() [function.include]: Failed opening '/usr/home/euro/domains/euro.eu/public_html/editpage.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

The strange thing is that the allowed path shows a path of another user (peken in this case) (these paths vary from error to error).
It seems apache gets confused with the user of the current site or something.

I'm running Apache 2.2.6 with php 4.4.7 and DA 1.31.0 with open_Basedir on and safemode off.

Please help.
 
You're trying to reach user "euro" files using "peken" user, and open_basedir doesn't let you to go outside of /home/peken. Disable open_basedir protection for "peken" user and you won't get this error again.
 
Hi,

I'm afraid that isn't the issue. There are no dependencies between the users/sites. The page being called is on "euro". editpage.php is called directly from the browser.

When this error occurs and I refresh the page, the page loads fine.
And when the error occurs again (on the same or a different page/site), the allowed paths is different (it shows another user).
 
Check /usr/local/directadmin/data/users/euro/httpd.conf file (you can grep open_basedir values using):
Code:
cat /usr/local/directadmin/data/users/euro/httpd.conf | grep open_basedir
 
Open_basedir in the httpd.conf is:

Code:
php_admin_value open_basedir /home/euro/:/tmp:/usr/local/lib/php/
 
The same thing occured again on another domain, with an allowed path other than the dir of the domain. After a refresh of the page, the page loaded fine.

Is there a way to see how often this occurs?
 
Back
Top