Directadmin make mysql and httpd crash

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,632
Location
A Coruña, Spain
Hi,

i've a problem.

When someone log in DA crash mysql and httpd, first system go very slow and than i've to restart httpd ...

what can be? how can i solve it?

thanks
 
Hello,

Is your drive full? All 3 cases of the programs not working could be attributed to a full disk.

Check with:
Code:
df -h
John
 
>df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 71G 61G 3.6G 95% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1d 501M 18K 461M 0% /tmp
procfs 4.0K 4.0K 0B 100% /proc


is not... 3gb left...
 
Hello,

It might have hit 100% in the past.. (eg, large log file, recently rotated) that's pretty much the sole reason for the user.conf corruption.

To fix the user.conf problem, you can run:
Code:
cd /usr/local/directadmin/scripts
./fix_da_user.sh [b]username[/b] user [b]domain.com[/b]
where username is the name of the user, "user" is his type (user, reseller or admin) and the domain at the end is optional.

John
 
The message
Unable to determine Usertypeuser.conf needs to be repaired
will show up for any users with a broken user.conf... or you can check to see manually:

/usr/local/directadmin/data/users/username/user.conf

should have a line that says:

usertype=user

(or usertype=reseller, or usertype=admin)

John
 
mysql needs to write database files to disk in order to work. If the drive is full, it might crash.
Apache might need the same thing for it's log files in /var/log/httpd/* .. if it can't open them for writing, it might not be able to start up correctly.

For either case... (assuming something was added) check the /var/log/httpd/error_log, /var/log/messages and/or /var/lib/mysql/<hostname>.err ... or /home/mysql/<hostname>.err (or /var/log/mysql.log) for possible specific reasons for the crashes.

John
 
today is not crashed yet, i saw some error in error_log... like httpd is now free or somethink similar.. i look in this forum and i see that could be an error of my.cnf and i changed it...
 
Back
Top