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.

html not showing

Discussion in 'General Discussion' started by doridori, Dec 20, 2008.

  1. doridori

    doridori Member

    Joined:
    Dec 20, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    i have placed html file in root/public_html and var/www/html

    instead it shows http://flashfap.com/scr.jpg

    i have just set up a name server 2 hours ago.
     
    #1 doridori, Dec 20, 2008
    Last edited by a moderator: Dec 20, 2008
  2. doridori

    doridori Member

    Joined:
    Dec 20, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    weird

    i am supposed to put all my files in /usr/local/apache/htdocs instead of public_html ?
     
  3. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    269
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bakersfield, California
    Files in /usr/local/apache/htdocs will only show when you visit the hostname of your server or an IP address on said server that isn't configured for any other site.

    /var/www/* is typically used by out of the box Apache installs, which cPanel doesn't use.

    /root/public_html should never work for serving sites, regardless of userdir settings, if I recall correctly.
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    This default page usually displays when the DNS of a domain is pointing to one IP and the domain's VirtualHost is on another IP in httpd.conf or the VirtualHost does not exist at all.
    This is not weird, usually happens in DNS propagation issues.

    by root/public_html you mean the cPanel user's root or the root of the server? The default place where you need to put a cPanel account/domain's web files is /home/username/public_html where 'username' is the cPanel username of the account. You can check if domain is pointing to correct IP in DNS report (intodns.com) and in apache, "WHM >> IP Functions >> Show IP Address Usage"
     
Loading...

Share This Page