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.

rearrange account (failed now what? - help please)

Discussion in 'General Discussion' started by joshua39, Sep 7, 2007.

  1. joshua39

    joshua39 Registered

    Joined:
    Mar 19, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I rearrange 1 of account that using 3 gig of space on /home
    And last night I moved it to /home2 (using WHM rearrange account).

    The problem now is I'm getting this error:

    And when I ssh and see the /home2 folder.. I saw all my files there..
    Anybody can help me here...

    Thanks
     
  2. NexGenUK

    NexGenUK Active Member

    Joined:
    May 7, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    If you login to SSH as the root user, you shuold be able to edit the file "/usr/local/apache/conf/httpd.conf"

    :- pico -w /usr/local/apache/conf/httpd.conf

    in there, find the virtualhost for the domain and you will find one of the following
    (Incase you havent done this before the virtualhost may look something like the following)

    This is from a site on one of my companies servers.

    The bits of interest that will relate to your problem will be:
    and/or
    You need to change the path slightly to say "/home2/kazhi:/ur/lib/php:/usr/local/lib/php:/tmp".


    Once youve done that, close and save the file (press ctrl+x, it'll ask you to save), and then restart apache:
    /etc/init.d/httpd restart

    If you dont have root access, you'll have to contact the company you host with.

    Hope that helps and doesnt confuse too much lol
     
  3. linux.newbie

    linux.newbie Well-Known Member

    Joined:
    Sep 8, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Since you will be adding more accounts to /home2, I would suggest adding /home2 permanently to your server configurations.

    edit /scripts/phpopenbasectl
    check for the line
    print HC "<IfModule mod_php4.c>\nphp_admin_value open_basedir
    or
    print HC "<IfModule mod_php5.c>\nphp_admin_value open_basedir
    and add "/home2:" next to home without quotes there.

    Then,
    /scripts/phpopenbasectl off
    /scripts/phpopenbasectl on

    This is applicable if, on the file you have set "/home" and not the homedir parameter.
     
Loading...

Share This Page