TooTired
11-30-2009, 11:13 PM
I have a RAQ XTR which I set up years ago. I have since gotten really rusty on linux and server admin etc. So the other day, I noticed that I am unable to access any of the sites on my server. I always get a page not found error. I have rebooted the network and the server hoping to clear up whatever glitch might have occured. No luck. I can't even access the admin page. httpd is running. I can ping the server and get to it via telnet. However nothing through the browser. I feel like I am missing something really obvious here but like I said, I've gotten really rusty.
Any help would be really appreciated.
TooTired
12-03-2009, 07:32 PM
Okay I managed to get part of my problem resolved. Since no one offered any solutions I thought I would post what I found in case someone else runs into this issue. It turned out to be a corrupt httpd.conf file. I knew httpd was running, but when I tried to restart it, I would get a syntax error. I don't know Perl but I could tell that an if/else statement wasn't completed at the end of the file. After restoring httpd.conf from the backup, I realized that the last 75 lines or so were missing. So that allowed me to get web access again.
So now my problem is that the configuration info for the site is gone. My virtual site list is gone as well as the general settings. The sites are physically there so I haven't lost any files. I tried to re-enter the site info etc but I get a message that says "The hosts file is locked".
So now my question is - is there a file where all of that info is stored? (virtual site lists etc). Or how do I unlock the hosts file so I can re-enter the info?
Titox
12-04-2009, 07:05 PM
"The hosts file is locked".
Host file? Are you editing httpd.conf?
I don't have any RaQ XTR but in a RaQ 4 via telnet or in a RaQ 550 via ssh, you can't login using the root account. To edit any configuration file like httpd.conf you have to gain superuser rigths with the command su. The password is the same as the admin user:
$ su
password: <your admin password>
# pico httpd.conf <or # vi httpd.conf>
Not sure is yous OS has any type of database to store this information (RaQ XTR and the Qube 3 was a mix between old Cobalt OS and the new Sausalito one)
TooTired
12-04-2009, 09:00 PM
I am using the built in web admin tool. I was actually able to get everything to come back up. I didn't change anything it just showed up again. However the "Sun Cobalt Server Name" field is blank and when I try to input a name, it still says "The hosts file is locked. Please try again later". Not sure what that means.
Also even though all of my virtual sites etc are showing up, whenever I try to access any of the virtual sites from the web, I get redirected to the main site. Not sure if the "server name" field has anything to do with that.