Deceased
- Join Date:
- Jan 2007
- Location:
- Australia
- Posts:
- 6,263
- Plugin Contributions:
- 4
mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket
RixStix:
It only made sense to me that if cPanel restarted the database server, there should be some record of "WHY" that happened. Haven't heard anything yet from that comment to host.
cPanel doesn't restart anything. This is a selection of tools for end users, not so much site admins.
It is the kernel code that handles things like server crashes, killing wayward processes, restarting services, etc.
RixStix:
VPS SSH access is available. I've never needed it (that I knew of), so never asked. So I wouldn't know it if it hit me 'tween the eyes or how to access. :huh:
SSH = 'Secure Shell' - It is just another server process like SQL, HTTP, FTP, TELNET, and so on. You access it with an SSL client (such as 'Putty' http://www.putty.org/)
There may even be an SSH client available to use via your cPanel (although these tend to be horrible to use).
Assuming you are using Putty, you'll open up a connection to your VPS, which will give a DOS like command prompt.
You can then (or should be able to issue a command
cp /var/log/kern.log /var/www/public_html/
This will copy the kernel log file into your public_html folder, where you'll be able to read/view/download it via your cPanel.
If you get a 'file not found' error, you'll need to do a bit of searching to find the file.
"cd" will change your current folder/directory
"ls" will give a list of filenames and folders in whatever folder/directory you are in.
"cd /" will be your 1st command - this will take you to the topmost folder/directory of the server. An 'ls' at this point should reveal folders like 'boot', 'bin', 'sbin', 'home', 'root', 'tmp' 'usr' and 'var'.
The system log files are always found in the '/var' folder/directory.
If you feel this is beyond you, ask your host to provide you with a copy of the file. Or better yet, since they are charging you to manage the server, they should be able to review this log file (and any others) and be able to tell you exactly what is causing the problem. That is why these log files exist. :-)
Cheers
RodG