Something like: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Ok this was tough enough to find. :PThree simple things. the number inside parenthesis indicates the error number we want to think about firstly. The number two means that mysql daemon cannot find that file. So, to solve this, try […]
Tag: system administration
Server monitoring – remote monitor a server with GKrellM via ssh tunnel
1 2 3 4 |
Let's say you have a server in a LAN you want to monitor from your house or from your office instead of being in a depressing computer room. By the way, computer rooms are not depressing at all, we all love them! ;)! But if you have multiple servers? Thinking the possibillities working mobile? Enough! <strong><span style="font-size: x-large;">GKrellM features</span></strong> |
1 |
<a href="http://gkrellm.net/">GKrellM</a> is a free monitoring tool that gives you information about: |
Hostname/systemname display. Clock/calendar. SMP CPU monitor that can chart individual CPUs and/or a composite CPU. Temperature, fan, and voltage sensor monitors if supported by the kernel and the mainboard hardware. Linux requires lm_sensors modules, sysfs sensors for kernels >= 2.6.0 or a running mbmon daemon. Sensors can also be read from mbmon on […]
Linux Server Monitoring – Schedule a Command Output to be Sent via Email on Boot
Scheduling a command on boot it’s easy and it can be done with different ways. One, with cronjobs and second, with the rc.local file (/etc/rc.local). Third, by putting your own script in /etc/init.d/. Fow now I’ll take the easy way to do it, the one with the rc.local. Requirements: sSMTP Mutt email client Implementation Open […]
Send email from Linux Terminal – How to install and use mutt terminal email client
Mutt is a sophisticated email client for linux terminal. It supports MIME, GPG, PGP and threading. In this tutorial I wont expand to report full use of the software because the whole point is to show you how to setup a basic but promising email notification system for your servers, so you can customize it […]
How to install PDO sqlite3 on Ubuntu
SQlite is a serverlessĀ Relational Database Management System. In plain words, it’s an SQL database without the need of running an SQL server. From my experience it’s not included in LAMP stack, so you have to install it by yourself. 1. Install php5-sqlite via apt …
1 |
$ sudo apt-get install php5-sqlite |
If SQLite is installed but the PHP driver is […]