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.

Confused Beginner - Help please

Discussion in 'General Discussion' started by Mountain, Oct 25, 2011.

  1. Mountain

    Mountain Member

    Joined:
    Oct 25, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I am attempting to transfer a static web site from one host to another.

    The original site was zipped and copied onto the new site where it was unzipped into public_html

    At this point the only access available is through its IP address. With or without /index.html this produces

    /http://212.113.150.36/cgi-sys/defaultwebpage.cgi

    R[/URL]eading in these forums it seemed that this may have been a problem with .htaccess

    Using the File Manager this file is not visible (although it and similar files are visible on other sites which I have built in the same cluster). However searching for it demonstrates that it is present.

    So I uninstalled the whole site, unpacked it on a local machine and uploaded it through FTP. The FTP dialogue demonstrates the presence of .htaccess. The upload proceeded normally and the effect was as described above, index.html was not visible and the cgi default was all that was offered.

    The contents of .htaccess viewed on my local machine showed a couple of redirects related to the name of the site that will be applied when the nameservers are changed.

    Please can you explain
    1. What do I need to do to make .htaccess visible through CPanel?
    2. What do I need to do to make index.html the default page for the site?
    Thank you from a new player at CPanel and WHM version numbers 11.30.4 (build 6)

    TD
     
  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:
    In your cPanel at bottom of main page, you see a link to Reset all interface settings. Click that.
    After the page refresh, click No, I'm fine thanks on the popup.
    Next, click File Manager icon.

    On this popup, look closely and see the option to Show Hidden Files, tick that box and hit go.

    Navigating to your public_html directory should now show you any .htaccess file present.
     
  3. Mountain

    Mountain Member

    Joined:
    Oct 25, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Thank you very much.

    I had gazed at that screen for a couple or so hours without seeing that.

    However, the other problem persists. I still do not get the index.html to display.

    My .htaccess contains

    Which I think is innocuous and since I am using the IP address to access index.html is not being activated.

    How do I get to index.html and avoid
    /cgi-sys/defaultwebpage.cgi ?
     
  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:
    Try renaming that .htaccess to .htaccess.txt

    I'm not sure that will help here, but it would rule it out for sure.

    Does this account have a dedicated IP? If no, bringing up the site by IP won't work without making another change in WebHostManager (WHM).

    WHM > Security Center > Apache mod_userdir Tweak:

     
  5. Mountain

    Mountain Member

    Joined:
    Oct 25, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Well, that is very curious.

    Renaming .htaccess did not appear to have any effect. So I undid that change.

    My WHM account does not have a Security Center in its control panel. So I could not use that tweak.

    But addacumen.com/~amethy5t/ produced the page I wanted and all the subordinate pages.

    My problem remains. How to show the site to my client?

    What can be done to get the cgi-sys/defaultwebpage.cgi to go away?
    What is happening that leads to that page? Which, in fact, is actually no page at all; nothing like that exists in the cgi directory?
    And, why doesn't that give a 404?

    Still mystified.

    Thanks for your help.

    TD
     
  6. Mountain

    Mountain Member

    Joined:
    Oct 25, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Checking .htaccess now it is found to be empty.

    Should I put something different in there?
    It will presumably lose me the redirects which were there before but it may show me the main site.
     
  7. 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:
    You're hosting Reseller access to WHM is limited it sounds like. You might want to take this issue up with your host. Short of that, pointing your actual domain to the account via your domain registrars NameServers would be the suggested way forward.
     
  8. Mountain

    Mountain Member

    Joined:
    Oct 25, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Other things I have tried are

    1. Following this thread

    I do not have access to httpd.conf as far as I can see. I flushed the cache

    Make .htaccess one line which says

    Result No impact.

    Then, further down, I discovered posts by CPanelDon and Mario CPanel which suggest that this is an internal problem with some instances of CPanel so I have referred the problem to my host provider.

    Will report back with any response.

    Thank you for all your help.

    TD
     
  9. 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:
    Not sure how much I actually helped here on this one, but good luck to you. :)
     
Loading...

Share This Page