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

RE: [cobalt-users] RAQ4i : webserver down



Well, I found the reason.
There was nothing wrong with srm.conf.
When I commented that line 24 which was correct, and tried to restart , the
error was changed to the next true line in srm.conf.
So then I found out that the httpd.conf was completely emty (0 KB).
I tried to restore from httpd.conf.bak but got the error that the root file
system was full.
I moved /usr/doc to /home/doc and ln -s /home/doc /usr/doc to free up around
63MB.
I copied the httpd.conf.bak to httpd.conf and it worked.
But that file was missing alot of vhost entries so I added them manually.
I restarted apache and the sites are up again.

What scares me though is why httpd.conf was empty all of a sudden.
Was this caused by the gui unable to overwrite the file after adding a vsite
?
What in the world made cobalt devs decide to make such a small root file
system.



-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Dan Kriwitsky
Sent: maandag 15 december 2003 14:57
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] RAQ4i : webserver down


> A few minutes ago some sites on one of our raq4i's went down.
> I rebooted the server and the sites were still down. I
> manually tried to reboot the webserver and got the following message :
>
> [root admin]# /etc/rc.d/init.d/httpd restart
> Shutting down Web Service:
> Setting up Web Service: Syntax error on line 24 of
> /etc/httpd/conf/srm.conf: Invalid command 'UserDir', perhaps
> mis-spelled or defined by a module not includ ed in the
> server configuration /usr/sbin/httpd
>

On my RaQ at that point it says:

# UserDir: The name of the directory which is appended onto a user's
home
# directory if a ~user request is recieved.

UserDir web

First I would to to /etc/httpd/conf and do:

[root conf]#cp srm.conf.master srm.conf.master.bak #to create a backup
just in case

I would compare your srm.conf to your srm.conf.master.bak and edit the
srm.conf.master.bak to match. On mine, some lines are uncommented around
lines 173 is the only difference I see.
After you make any changes to make the .bak file you can replace
srm.conf
[root conf]#cp srm.conf srm.conf.bak #to create a backup just in case
Then
[root conf]#cp srm.conf.master.bak srm.conf #replacing the srm.conf with
the file you just edited.
Then restart httpd and see what happens.
If you're uncofortable using your editor via SSH, you could cp the
necessary files to a /web directory you have FTP access to and download
them as ASCII and edit them offline with a proper ASCII editor like
NoteTab. Then upload them, being careful to do it as ASCII and cp the
file from the /web directory to /etc/httpd/conf. Again making backups
first.

--
C2003 Dan Kriwitsky

Please reply to the list only. Off list replies are not read.


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users