View Full Version : Silly linux and apache question regarding the httpd.conf file

09-25-2002, 05:42 PM
Okay a open up the httpd.conf file from the command line. It opens up in the shell window. My question is, how do I save and exit the thing? Like is it a certain keyboard combination?

09-25-2002, 05:56 PM
Assuming you are in the right directory:

vi ./httpd.conf

Hit "I"

make your changes

Hit "Esc"

Type ":wq"

Hit enter

09-25-2002, 09:44 PM
vi ./httpd.conf If you are first time user to vi, I suggest that you make a copy of the file first and know that ':q!' instead of ':wq' quits without saving!

It's not the most friendly of editors!