LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Opening and Editing httpd.conf file (https://www.linuxquestions.org/questions/linux-newbie-8/opening-and-editing-httpd-conf-file-221698/)

kakagak 08-24-2004 07:35 AM

Opening and Editing httpd.conf file
 
Hello,
How can I open, edit and save httpd.conf file using telenet (command lind).
I am using windows ME/XP.
Please help.

Regards

Kaka Gak

colabus 08-24-2004 08:03 AM

use editor, or get joe you should be able to use them through telnet

Joubert79 08-24-2004 08:17 AM

Try an editor of you choice. At the very least your system probably has vi or vim or joe. I use nano.

You'll need to find where httpd.conf resides, which seems to vary somewhat. If you don't know where it is, you could peer inside your init script if you have one, ie. "less /etc/init.d/httpd" (or "less /etc/init.d/apache2", or something, do "ls /etc/init.d/" to see what the script might be) and look around for clues to where httpd.conf is. Otherwise if you have locate, you could try "locate httpd.conf". (you might need to build the locate database first, "locate -u", and sit back for a bit.)

From your telnet command prompt do "vi /path/to/httpd.conf" with the obvious replacements of your choice of editor and /path/to.

PS. If you use vi, I can recommend having a look at an online manual for how to save, quit, cut, paste, etc.


All times are GMT -5. The time now is 05:28 PM.