We are going to transfer our accounts from one server to another. So I am doing some testing to see if the copy accounts will work. So far everything looks good. I do have one issue that I need to resolve.
For some reason the first account transfered is the default open_basedir for all other accounts to follow it. So from my example below. The first account copied over was the user sp0rkor. Then I copied the account sackspr over. But when trying to execute some of their php code I get the error below.
Warning: Unknown(): open_basedir restriction in effect. File(/home/sackspr/public_html/blog/index.php) is not within the allowed path(s): (/home/sp0rkor:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in Unknown on line 0
Warning: Unknown(/home/sackspr/public_html/blog/index.php): failed to open stream: Operation not permitted in Unknown on line 0
Warning: (null)() [function.include]: Failed opening '/home/sackspr/public_html/blog/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
It is obviously an issue with open_basedir not having the correct path. As you can see it wants to use /home/sp0rkor as the basedir. I have looked into the http.conf file and the php4_admin_value is correct. I have no idea where it's getting this from. It have to be some sort of default first virtual account gets the value. I tested this theory by deleting the rest of the accounts except for the sackspr and it worked. Then when I added more sackspr was the default for them all.
Any ideas besides turning off open_basedir?
Thanks
Atomjax



LinkBack URL
About LinkBacks
Reply With Quote





