[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] how do I change httpd.conf (NEWBIE ALERT)
- Subject: RE: [cobalt-users] how do I change httpd.conf (NEWBIE ALERT)
- From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue Sep 10 14:39:49 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> 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
If you don't want to use SSH (Secure Telnet) to edit using Pico, you
can:
Download as ASCII the httpd.conf file via FTP.
Edit it.
Upload as ASCII to someplace you have permission, e.g.
/home/sites/home/web.
Log in via SSH as admin.
Type su - (That's su [space] hyphen.
Enter password again to become root.
cd /etc/httpd/conf
Now you're in the /etc/httpd/conf directory. Be careful. Make a backup
of anything before you screw with it.
cp httpd.conf httpd.bak
That makes a backup, just in case.
Then you need to copy the uploaded version to replace the old version.
cp /home/sites/home/web/httpd.conf httpd.conf
Then type:
/etc/rc.d/init.d/httpd reload
Test your site. If something is wrong, just type:
cp httpd.bak httpd.conf
/etc/rc.d/init.d/httpd reload
and you should be back to using your old httpd.conf file.
If you make any changes via the GUI to that virtual site, it may
overwrite your modifications.
The other alternative is to use .htaccess for that site instead.
--
Dan Kriwitsky
Please reply to the list only. Offlist replies are not read.