Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    18

    Default open_basedir restriction from account transfers

    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

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What's your cPanel version? Which account transfer method are you using? What is the cPanel version number of the server you are copying from?

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    18

    Default

    Quote Originally Posted by cpanelkenneth View Post
    What's your cPanel version? Which account transfer method are you using? What is the cPanel version number of the server you are copying from?
    The new server is:

    WHM 11.11.0 cPanel 11.15.0-R18033
    CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0

    The old server is:

    WHM 10.8.0 cPanel 10.9.0-R118
    RedHat 7.3 i686 - WHM X v3.1.0

    I am doing a copy of an account from another server. Using the user root and with shared key's. I put in the username and it transfers it over.

    Thanks

    Atomjax

  4. #4
    Member
    Join Date
    Sep 2008
    Posts
    19

    Default

    I'm having the same problem, only it's not during account transfers.

    I'm trying to restore accounts for a reseller, and while the other accounts are working fine, it seems the open_basedir on 1 of them is not being set up properly (same as above).

    The reseller has a dedicated shared IP, and I've noticed that when I leave the IP as our main shared IP, instead of the resellers shared IP, the http://IP/~user works without any problems. Once I switch the IP over to the resellers shared IP, the http://IP/~user throws the open_basedir problem as stated above.

    I've checked httpd.conf for the username in question, and the open_basedir entries are properly set up like other accounts.

    Anyone know what could be happening?

Similar Threads & Tags
Similar threads

  1. open_basedir restriction not working for HTTPS
    By Maleas in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-26-2008, 09:19 AM
  2. open_basedir restriction in effect.
    By Guda in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-23-2008, 09:34 PM
  3. Warning: open_basedir restriction in effect
    By Ver17 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-28-2005, 09:47 AM
  4. open_basedir restriction in effect.
    By melvinmeow in forum New User Questions
    Replies: 0
    Last Post: 04-09-2005, 03:31 PM
  5. Please help with the known problem of open_basedir restriction
    By uri92 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-04-2004, 05:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube