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.

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:
    1
    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:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    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.
     
  3. alh

    alh Registered

    Joined:
    Nov 4, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    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!
     
Loading...

Share This Page