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.

home path for user is alias,

Discussion in 'General Discussion' started by paralard, Mar 3, 2003.

  1. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    Hello, I am trying to set up dreamcost hosting admin. It interfaces with cpanel. I have set up a user in whm. The problem is that when I point the script to the absolute path, it is not really the absolute server path. here is the errors I get, they may help explain.

    Warning: main(/home/public_html/hostadmin/setup.php) [function.main]: failed to create stream: No such file or directory in /home/admin/public_html/hostadmin/admin/index.php on line 14

    Fatal error: main() [function.main]: Failed opening required '/home/public_html/hostadmin/setup.php' (include_path='') in /home/admin/public_html/hostadmin/admin/index.php on line 14

    So when I enter the path /home/public_html/hostadmin/admin/index.php ....... it is not really the root server path. It is the root server path

    I guess my question is, how do I set up an account on the whm server that will give me a public directory, or that is not governed by cpanel................. I am sorry I do not know how to explain it better..................... Thanks for any help or ideas
     
  2. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    First off you got that code all messed up. You are trying to point it to 3 different locations.

    The absolute path should be

    /home/USERNAME/public_html/hostadmin/admin/

    Replace USERNAME with the correct username for the account.

    Also if your scripts are in a different directory than change those also.
     
  3. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    No

    Tried it, that is not the problem. The path I entered is /home/admin/public_html/hostadmin/ the problem is whe you ftp into the users domain, wich is admin. it does not show the admin directory. when I ftp into the user domain. the directory it sends me to is / and under that is public_html ...... so you see, the admin folder is the / for the user root. I hope this make sense.................... Thanks
     
  4. Habikki

    Habikki Member

    Joined:
    Jun 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Yeah, with the newer versions of PHP I've noticed that they are getting massivly strict with path's to includes and requires. From what you posted above, your including a file that can't be found. If you're running on cpanel then you're all sorts of messed up with the paths as all accounts are /home/username/public_html/. What I'm looking into now is that since cpanel and whm directories are virtually mapped to something like /usr/local/cpanel/base/ or something like that. What you may need to do is install your script not in a particular account that you've created... but within the whm root that's mapped. Least thats my $.02.

    Cheers,
    Robby

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page