LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Server Done (http://www.linuxquestions.org/questions/linux-newbie-8/server-done-812710/)

macmikeal 06-07-2010 01:30 PM

Server Done
 
Hi had my server going pretty good. Two sites being hosted. wilmingtoncoc.com and mikealrhughes.com. Last night we had Thunderstorms and Tornadoes come through. While I was out Tornado chasing. We lost power here for an instant and back on. When I came in the server was off. So I booted it back up. The mikealrhughes.com site is still working good. The wilmingtoncoc.com site is giving me a Database read error, it is a WordPress site. Also I can't log into the Server using SSH. Where do I start to repair the problem? Do I reinstall SSH if so what is the command I use? Then how do I solve the WordPRess Database problem? Any and all help appreciate!! Also when I try and issue a command from the Server with sudo in front of it I get an error message that says - sudo: must be setuid root - whatever that means. I couldn't find that in any of the books I have.

AlucardZero 06-07-2010 02:34 PM

We need a lot more information to be able to help.

1. What distro of Linux are you using ????????
2.
Quote:

sudo: must be setuid root
Log in directly as root and do:
Code:

chmod 4755 `which sudo`
. Why: http://en.wikipedia.org/wiki/Setuid
3.
Quote:

Do I reinstall SSH
Maybe, probably not. What errors do you get when you try to restart SSH??
4.
Quote:

Then how do I solve the WordPRess Database problem?
No idea, what errors are you getting in your Web server's log(s) or MySQL's log(s)? Is MySQL even running?

blue_print 06-07-2010 02:34 PM

Hi,

MySQL might not be running, this could cause the DB errors in Wordpress. Please check whether DB server is running or now.

About SSH, Are you getting any error while SSH to the server? Give me more info, so that we can help you!

macmikeal 06-07-2010 05:08 PM

Quote:

Originally Posted by AlucardZero (Post 3995719)
We need a lot more information to be able to help.

1. What distro of Linux are you using ????????
2. Log in directly as root and do:
Code:

chmod 4755 `which sudo`
. Why: http://en.wikipedia.org/wiki/Setuid
3. Maybe, probably not. What errors do you get when you try to restart SSH??
4. No idea, what errors are you getting in your Web server's log(s) or MySQL's log(s)? Is MySQL even running?

SSH error when I try to log in - Read from socket failed: Connection reset by peer

macmikeal 06-07-2010 05:08 PM

Quote:

Originally Posted by macmikeal (Post 3995861)
SSH error when I try to log in - Read from socket failed: Connection reset by peer

Using Ubuntu 10.04 Server

jstephens84 06-07-2010 05:09 PM

1st check your services for both sshd and mysqld. if that is working try logging on directly to your database.

mysql -u root -p -D <database_name> if you can get in then try doing some simple select queries.

if you still are having problems then try doing a restore on the database.

macmikeal 06-08-2010 07:12 AM

Quote:

Originally Posted by jstephens84 (Post 3995864)
1st check your services for both sshd and mysqld. if that is working try logging on directly to your database.



mysql -u root -p -D <database_name> if you can get in then try doing some simple select queries.

if you still are having problems then try doing a restore on the database.

How do I restore the database. I looked through the WordPress files and saw a repair.php but don't know how to run that.


All times are GMT -5. The time now is 12:57 AM.