LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-07-2010, 01:30 PM   #1
macmikeal
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
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.

Last edited by macmikeal; 06-07-2010 at 01:38 PM.
 
Old 06-07-2010, 02:34 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,630

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
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?
 
Old 06-07-2010, 02:34 PM   #3
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 49
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!
 
Old 06-07-2010, 05:08 PM   #4
macmikeal
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
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
 
Old 06-07-2010, 05:08 PM   #5
macmikeal
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macmikeal View Post
SSH error when I try to log in - Read from socket failed: Connection reset by peer
Using Ubuntu 10.04 Server
 
Old 06-07-2010, 05:09 PM   #6
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
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.
 
Old 06-08-2010, 07:12 AM   #7
macmikeal
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
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.
 
  


Reply

Tags
root, setuid, wordpress


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server configuration for small office server, which smtp, pop imap server and backup whitelinux Linux - Server 4 04-06-2010 11:26 AM
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
best distrubition for nas server and p2p download server and web server geosko Linux - Distributions 8 10-13-2006 09:20 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration