LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   httpd.conf (https://www.linuxquestions.org/questions/linux-newbie-8/httpd-conf-176091/)

bumfan 04-29-2004 05:34 PM

httpd.conf
 
How do you edit /etc/httpd/conf/httpd.conf (httpd.conf) is what im trying to edit I noticed you can't just load a text editor and save it kuz it says you dont have permisson....So what is the command to edit it form root in terminal....

marghorp 04-29-2004 05:39 PM

First you have to be root.

su
<your root password here>

emacs /etc/httpd/conf/httpd.conf

You should be ok to edit it at your will and save changes later.

If this fails, check permissions of the httpd.conf file with ls -la

after you have changed that file, you must restart apache for changes to take effect

/sbin/service httpd restart


All times are GMT -5. The time now is 11:55 AM.