1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

missing index.html

Discussion in 'General Discussion' started by memon421, Jan 6, 2012.

  1. memon421

    memon421 New Member

    Joined:
    Jan 6, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    HI,

    I have access to public_html folder, I do not see index.html page nor htdocs folder. When I try to access ip address I see

    http://ip-address/cgi-sys/defaultwebpage.cgi

    How can I change it to run my php code?

    Any advise?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Well-Known Member
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    17,523
    Likes Received:
    26
    Trophy Points:
    48
    Hello :)

    There will not be an index.html file or htdocs directory within "public_html" by default. Instead, you have to upload your website files to this directory in order for them to be accessible.

    Also, ensure you are using the domain name or the URL provided by your web hosting provider when attempting to access your website.

    Thank you.
     
  3. storminternet

    storminternet Member

    Joined:
    Nov 2, 2011
    Messages:
    431
    Likes Received:
    0
    Trophy Points:
    16
    Please make sure that you have assigned dedicated IP for your site if you wish to access it with the IP address only.
    Only with the dedicated IP address you can access your site at http://x.x.x.x (where x.x.x.x= IP address)
     
  4. linux7802

    linux7802 Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Every domain hosting account having its own document root path therefore while you are browsing the shared serer ip address you are receiving the content present under the directory /usr/local/apache/htdocs/ as its assigned to the shared ip address by default, if you want to browse the domain with the temporary URL then refer to the following syntax

    http://serverIPaddress/~cpanel-userr-name/

    For example server ip is 192.168.0.1 and cPanel user name is test then temporary URL is

    http://192.168.0.1/~test/

    Or

    If you want to browse the domain with the ip address only then assign dedicated ip to the domain, so that you will be able to browse the domain with the server ip but make sure that you are assigning the dedicated ip
     
  5. cPanelJared

    cPanelJared cPanel Staff
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    Houston, TX
    In addition to the information in the replies from the other users, make sure that the domain resolves to the IP address on which the domain is configured in the WebHost Manager. I made the following post yesterday that elaborates on this:

    http://forums.cpanel.net/f34/cpanel-primary-domain-251661.html#post1044681

    Your access level indicates that you are a Web site owner, so your host really should be able to help you with this.
     

Share This Page