Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

setting cpanel account public_html folder as root folder for web app

Discussion in 'General Discussion' started by alh, Nov 4, 2011.

  1. alh

    alh Registered

    Joined:
    Nov 4, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi there,

    I have a vps with cpanel. I am setting up my first website so I have created an account in cpanel.

    The account is accessed at ip address/~userName/ (I have not set up dns until i finish configuration)

    I installed zencart in the /home/userName/public_html directory. In the css style sheet of zencart there are paths to images displayed like: background-image:url(/includes/templates/classic/images/SKIN_PINK_GRADEINT_2px.png)

    these images are not displaying.

    looking at the apache logs the problem is that it is looking for the includes folder in the /usr/local/apache/htdocs folder rather than the userName public_html folder.

    All path settings are correct in my zencart configuration.php file.

    how can I fix this?

    Cheers,

    Alex
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Finish setting up the domain name to point to the server, that's the best answer.
    Give yourself a dedicated IP, second best answer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. alh

    alh Registered

    Joined:
    Nov 4, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    thanks, ill order another ip address and assign it to the account.

    I dont want to change dns yet as I have the site hosted elsewhere so I want my site working at my new host before I switch
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sure, makes sense. The problem of course is the tilde in the URL. If you're sharing the IP you have the tilde in the address, ~user/ If the account has a dedicated IP, there is no need for it. :)


    GL!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice