Ok guys/gals,
This is really puzzling me and I've tried everything I can think of. I know some may think this is a PHP issue, but it seems to me to be Apache causing the problem. (You will see why I think this in the following)
Specs:
Windows 2003
Apache 2.0.50
PHP 4.3.8
The following is in each Vhost:
In the php.ini, no basedir restriction is in place.
The problem
On random occassions (I can't find any pattern at all) the php page is called and open_basedir kicks in saying it is forbidden. However, the script is within the open_basedir and the weird thing is that it seems to be inheriting the dir from elsewhere.
For example, lets say there are 2 sites on the server, example & demo.
The vhost for example would have:
and the vost for demo has:
Now, I put a php_info script into / and it runs fine for a while but then I get a restriction error. The restriction error displays / as the allowed dir, so there seems to be an overlap somewhere. If I refresh the page, it works again for a while.
In reality there are more than 2 sites on the server, but the restriction shown each time seems to be random. One time it may say /demo, /example and so on.
The reason I think this is Apache related and not PHP is that the wrong vhost info is being sent, so for it to send the line from the wrong Vhost would imply a problem with Apache.
Has anyone else come across this?
Any suggestions welcome.![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Thanks in advance,
Wullie
Fresh Look - Coldfusion Hosting
The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
This is really puzzling me and I've tried everything I can think of. I know some may think this is a PHP issue, but it seems to me to be Apache causing the problem. (You will see why I think this in the following)
Specs:
Windows 2003
Apache 2.0.50
PHP 4.3.8
The following is in each Vhost:
Code:
php_admin_value open_basedir /www/USERNAME;C:\WINDOWS\TEMP
In the php.ini, no basedir restriction is in place.
The problem
On random occassions (I can't find any pattern at all) the php page is called and open_basedir kicks in saying it is forbidden. However, the script is within the open_basedir and the weird thing is that it seems to be inheriting the dir from elsewhere.
For example, lets say there are 2 sites on the server, example & demo.
The vhost for example would have:
Code:
php_admin_value open_basedir /www/example;C:\WINDOWS\TEMP
and the vost for demo has:
Code:
php_admin_value open_basedir /www/demo;C:\WINDOWS\TEMP
Now, I put a php_info script into / and it runs fine for a while but then I get a restriction error. The restriction error displays / as the allowed dir, so there seems to be an overlap somewhere. If I refresh the page, it works again for a while.
In reality there are more than 2 sites on the server, but the restriction shown each time seems to be random. One time it may say /demo, /example and so on.
The reason I think this is Apache related and not PHP is that the wrong vhost info is being sent, so for it to send the line from the wrong Vhost would imply a problem with Apache.
Has anyone else come across this?
Any suggestions welcome.
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Thanks in advance,
Wullie
Fresh Look - Coldfusion Hosting
The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell