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.

need help editing the httpd.conf

Discussion in 'General Discussion' started by telmove, Sep 26, 2006.

  1. telmove

    telmove Member

    Joined:
    Sep 26, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I need help editing the httpd.conf
    Where is this file and how do I edit it?
    Thanks,
    DAve:eek:
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    you need to open a SSH session
    and use your favorite editor nano, vi, etc
    its located at
    /usr/local/apache/conf/httpd.conf
     
  3. telmove

    telmove Member

    Joined:
    Sep 26, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    httpd.conf question

    Ok I found it!
    Do I just move it to my local machine and open it with wordpad and paste the lines that tech support gave me and then save it and move it back and then reboot?
    Is that it?
    Thanks,
    Dave
     
  4. chris74108

    chris74108 Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    Why not just
    1. ssh in
    2. su -
    3. cd /etc/httpd/conf
    3. cp httpd.conf httpd.conf.saveme (always good to back up the config before making changes)
    4. nano -w httpd.conf (if nano does not work try pico instead)

    and edit away

    Also you do not have to reboot your server to apply changes to httpd.conf just go to whm and navigate to restart services and click http server (apache)
     
  5. telmove

    telmove Member

    Joined:
    Sep 26, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ok thanks do you know how I can remove xwindows?

    do you know how I can remove xwindows?
    My server's video works initally when booting but then I get an error saying something about xwindows not liking the video card. How do I uninstall or remove xwindows? Will my video work ok after removing it?:rolleyes:
    Thanks.
    Dave
     
  6. Kelmas

    Kelmas Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lithuania
    And how do I save that httpd.conf file to my computer? Is there any command?
     
  7. chiefit

    chiefit Registered

    Joined:
    Nov 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I have problem like this but I edit my httpd.conf file in /usr/local/apache/conf direcory but wen I restart my apache service my changes don't be apply thear nathing to change but in httpd.conf file are changed I need to remove this option


    Options indexes FollowSymLinks MultiViews

    but nathing hapend :(
     
  8. hdctest

    hdctest Member

    Joined:
    Nov 9, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    So WHM won't edit httpd.conf? I thought you are suppossed to shy away from directly editing httpd.conf with cpanel. I need to add a domain to a site's 'server alias' field. Any way to do this via WHM?
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    It is generally good practice to use cPanel and WHM to handle your configurations (EDIT: rather than manually editing configuration files) as it will ensure that such items will not be accidentally erased or overwritten during upgrades.
     
  10. chiefit

    chiefit Registered

    Joined:
    Nov 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I wont to dany acces in folder wen index not founded how can i do it? please help me
     
Loading...

Share This Page