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.

I'm loading it wrong...

Discussion in 'General Discussion' started by oldbostonchat, Feb 12, 2010.

  1. oldbostonchat

    oldbostonchat Registered

    Joined:
    Feb 12, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Okay, I know I'm doing something completely wrong. I loaded my main site into it's folder under public_html . Went to visit my site, and got an index page with all my different sites' folders listed. Clicked on the proper site folder, it listed the pages on an index list, clicked on my welcome page, and finally got to see my site. Everything works from there, but to get to it I'm redirecting my xxxxxxxx.com site to: http://www.xxxxxx.com/xxxxxx.com/Welcome.html <<< DO NOT CLICK THAT, IT'S JUST AN EXAMPLE THAT HYPERLINKED ON ITS OWN!!

    Please tell me what I'm doing wrong!!?? I know it's my fault, just not sure what exactly I did or am doing wrong. :confused:

    Thank you in advance for any advice/tips!! I really appreciate it :)
     
  2. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    Simple! The files for the website should be directly put under the public_html folder and NOT within any sub-folders. This happens because the default document root is /home/username/public_html.

    However, if you have multiple sites and want to have the respective files segregated then you can create them as add-on domains and point the doc root for each of them to the respective folders under public_html.

    Alternatively, you can manually edit the httpd.conf file and change the document roots for the concerned websites.

    Another thing to be noted here is that , by default, it is the 'index' page in a folder which is loaded automatically. Hence, if you want the 'welcome' page to come up automatically when someone browses your site then you should rename it as 'index.php' or 'index.html', as the case may be.
     
  3. oldbostonchat

    oldbostonchat Registered

    Joined:
    Feb 12, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you!! We leave tomorrow for a 17 hour road trip to Kentucky and have MiFi from Verizon. So guess what I'm gonna be working on while we're on the road LOL This site is going to work if it's the last thing I do!
     
  4. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    Best of luck! Hope everything is sorted out :)
    Do keep us posted.
     
Loading...

Share This Page