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

[cobalt-users] I AM IN TROUBLE AND CANT RESOLVE IT



> I think this problem has something to do with the
>httpd config file being overwritten/erased when 
>the root ran out of space. I am not experienced
>enough to edit it, but I really do not know for 
>sure what is causing it. I would be obliged if
>whoever reads this could explain how I can fix this.

Not sure this will help, but here goes - use at your
own risk.  :-)

------------------------------

Login via SSH then su - to root

Then navigate to the config folder holding your web
server configuration files.

cd /etc/httpd/conf/

Perform a "ls" command (without the quotes) to verify
the srm.conf file is still there (you'll see others
like the httpd.conf file as well).

If srm.conf is still there, then first backup the
current copy before you continue.

cp srm.conf srm.conf-bkup

Then start the text editor (let's use Pico) with the
following command:

pico -w srm.conf

Hold down <Ctrl>+W    which will open a search inside
the open document inside Pico, then type:

DirectoryIndex

When you find the section that looks like below (if
you find it), make sure the DirectoryIndex lists at
least the index's you see below (or to your own
flavor). This is what tells Apache how to load index
files found under directories.. If you don't find a
line regarding "DirectoryIndex", then it's been
deleted and needs to be added back to the srm.conf
file.

# DirectoryIndex: Name of the file or files to use as
a pre-written HTML
# directory index.  Separate multiple entries with
spaces.

DirectoryIndex index.html index.htm index.shtml
home.html home.htm

Then type 
<Ctrl>+X

which will then ask you if you want to keep or discard
your changes

Then type
Y

to answer "YES" to save your changes to the srm.conf
file.

Then you need to restart (reload) Apache with this
command:

/etc/rc.d/init.d/httpd restart

------------------------------

Hope that helps..


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/