Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Editing httpd.conf

Discussion in 'General Discussion' started by firebox, Aug 26, 2009.

  1. firebox

    firebox Registered

    Joined:
    Aug 25, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    so i finally figured out how to access SSH with a key, now i'm about to edit the httpd.conf file to redirect my root document to /home/usr/public_html. my question is where exactly is the httpd.conf file? and if i modify it, would it change back during server upgrades? and if it does, what other files i need to modify here?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,582
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you run the command updatedb first, wait a bit, then run locate httpd.conf you should be able to come up with it at:

    /usr/local/apache/conf/httpd.conf

    Be sure to distill the file afterward with:

    /usr/local/cpanel/bin/apache_conf_distiller --update

    You should find this helpful:

    InsideVHost < EasyApache3 < TWiki
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    ABSOLUTELY DO NOT EDIT YOUR HTTPD.CONF FILE !!!!!!

    I read your other post and I know what you think you are doing but you apparently misunderstand what a user told you in the other thread or how your server works entirely plus it is very clear you are not even close to experienced enough to be doing anything in that file so stay far away from it before you really mess yourself up!

    You do NOT need to edit httpd.conf !!!!!

    That instruction was if you wanted "REMOVE the default page" which was the title of your other thread but you were actually really asking about how to get your web site up and running and that is something entirely different.

    Don't touch the default page. Instead you need to login to WHM and create a new web hosting account using the domain name you own. You will then have a new login setup that you can use to manage your web site. The default page is never touched and you don't do anything with it!

    Read my post in your other thread for more details!
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,582
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    Yeah, it looks like the poster actually isn't sure how to begin using their server and thinks they need to replace the default files to get their web site online so blindly asked "how to remove the default page" in these two threads.

    I guess it boils down to "make sure you ask the RIGHT questions"! ;)

    Oh well at least we got it figured out now and hopefully the user will see the follow up posts and can sort things out from that. :cool:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice