open_basedir restrictions occuring on wrong site occasionally

This problem has cropped up on us recently. We use open_basedir to prevent php users from accessing each others files. We set this up in httpd.conf by adding the following line to the virtual hosts entry.

php_admin_value open_basedir /websites/username

We have been using this for quite a while now even before cpanel started offering this feature and had no problems. Recently however we have been getting open_basedir restriction errors when we shouldn't be. The problem seems to be caused by the virtualhost using another virtual hosts open_basedir setting. In every case where this has happened it is always using the settings of the same virtualhost. For example,

I access /websites/username1 (www.username1.com)

however it gives me and open_basedir error saying that the allowed path is /websites/username2.

I have checked the virtualhost entries and see no obvious errors. This error happens across all accounts, although rarely. I could reload a php script 100s of times before it happens, and then sometimes it could happen every 10 reloads.

Has anyone else come across this problem? Due to the random nature of the error it has been difficult to test fixes and know if they've had any effect.

 

 

 

 

Top