The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

open_basedir restriction from account transfers

Discussion in 'General Discussion' started by atomjax, Nov 29, 2007.

  1. atomjax

    atomjax Member

    Joined:
    Sep 4, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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. atomjax

    atomjax Member

    Joined:
    Sep 4, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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. dellio

    dellio Member

    Joined:
    Sep 8, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page