View Single Post
  #4   (View Single Post)  
Old 20th July 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by badguy View Post
ok so to run apache with out chroot i have edited the rc.conf to reflect >> httpd=-u. is this correct?
No.

First, rc.conf contains only environment variables used by rc(8), it is not an executable script; local execution is done in rc.local(8).

Second, while there is an httpd related environment variable associated with Apache execution by rc(8), the variable is "httpd_flags".

Third, the best practice is to make local variable changes in rc.conf.local(5), rather than in rc.conf itself; as rc.conf is a system file subject to change during upgrades.
Quote:
Also i am trying to edit the /var/www/conf/httpd.conf file using vi but i get the error read-only file, not written. i stopped apache and it stil did not help. any idea what is accessing the file to prevent me from editing it?
A file marked read-only is ... read only. To override and save a new copy from vi(1), use the "w!" command, rather than the "w" command.
Reply With Quote