There is nothing in the httpd.conf

Discussion in 'Apache' started by Dollar, Apr 8, 2008.

  1. #1
    I'm having trouble editing httpd.conf, I have cpanel 11. Now I go to

    • nano /usr/local/apache/conf/httpd.conf

    This is all that is in the file
    I also check those Include files they don't even exist. I nano them and there is nothing. Where the heck is the httpd.conf
    This is starting to burn my arse. I just want to edit the maxclients and timeout. :(


    EDIT:
    Ctrl + V = Next page. Oops
    Still new to the Linux :eek:
     
    Dollar, Apr 8, 2008 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    its good for you to have an empty httpd.conf
    that gives you the opportunity to learn step by step your apache correctly instead of having to go thru a bunch of errors made by others.

    you nowhere mentioned your apache version
    hence the links are for the newest apache2.2
    http://httpd.apache.org/docs/2.2/configuring.html
    default layouts
    http://httpd.apache.org/docs/2.2/configuring.html
    same for other dists
    http://wiki.apache.org/httpd/DistrosDefaultLayout

    a complete overview of apache doc is found at
    http://httpd.apache.org/docs/2.2/

    a typical dist has a complete example httpd.conf included.
    assuming you have offline the same OS as your server - then look at your own config to copy and paste and adapt to your server's need.
     
    hans, Apr 10, 2008 IP
  3. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Note

    If your httpd.conf file corrupted or deleted, you can re-generat it using the given command

    /scripts/rebuildhttpdconf

    Vivek
     
    qualityhostings, Apr 20, 2008 IP
  4. kinoman001

    kinoman001 Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i advice you to use SSH Client like PuTTy to access your server :_)
     
    kinoman001, Apr 24, 2008 IP
  5. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Another excellent SSH graphical client is WinSCP which makes easier edit manually teh httpd.conf file just by copying and pasting the generic available at the apache documentation.

    Although my hubby says that cpanel creates automated backups of that file and you may easily find them inside the /etc/httpd directory [​IMG]
     
    Trusted Writer, Apr 24, 2008 IP