[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] how do I change httpd.conf (NEWBIE ALERT)



On Tuesday 10 September 2002 16:53, scott wrote:
> Hi gang
> How would I go about changing my httpd.conf file
> I tried to replace it by logging in as admin via ftp and replacing the
> file but I get a permission denied from ws-ftp. I am trying to change
> the php line that lets php parse .html files as well as .php files Best
> regards And
> Thanks in advance
> Scott
>

Well, maybe you should be working on srm.conf

But, then to do httpd.conf, when you edit it on your desktop

You have to ftp the file to admin user
then SSH into the server as admin
   su - to root
save /etc/httpd/conf/httpd.conf
  cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.save
then move the /home/sites/home/users/admin/httpd.conf
  mv /home/sites/home/users/admin/httpd.conf /etc/httpd/conf/httpd.conf
then fix the owner:group
  chown root:root /etc/httpd/conf/httpd.conf
then make sure that permissions are correct
  chmod  644 /etc/httpd/conf/httpd.conf 
then restart httpd
  /etc/rc.d/init.d/httpd restart

Gerald
-- 
http://frontstreetnetworks.com         http://raqware.com
229 Front Street, Ste C, New Haven, CT 06513-3203
                           Phone: 203-785-0699