Shellshock is quite a serious security hole found a couple of days ago in Bash; to check whether your CentOS server is vulnerable run the following in a terminal: env VAR='() { :;}; echo Shellshock vulnerable!’ bash -c “echo Bash Testing” If your system is vulnerable, you will see: Shellshock vulnerable! Bash testing If it…
If you have a lot of virtual (or real) machines running Debian or Ubuntu and a limited internet connection, it can make a lot of sense to use apt-cacher-ng to create a local cache of the packages you use so that they are only downloaded once. The current version of apt-cacher-ng can also help…
We helped rebuild a backup VM which receives data over rsync today; the first rsync attempt failed with the vague error message: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6] The problem ended up being that the rsync package was not installed. A simple: yum install…
Was asked to troubleshoot a client’s installation technique for WordPress on CentOS 6.x yesterday; they were receiving an Error 500 when they tried to access index.php for the first time. Checking the Apache logs showed: SoftException in Application.cpp:431: Mismatch between target GID (522) and GID (65531) of file “/home/andrea/public_html/index.php” Premature end of script…
Rather than being in /var/log as you might expect, the Apache logs can be found at: /etc/httpd/logs Here you’ll find the usual access, error etc. logs.
If you’re using a virtual server (whether online or your own physical machine) it can be handy sometimes to check how many CPU cores are available; here are two easy methods of doing this. The first: nproc This will return a single number, whether it be 1, 2, 4 or otherwise. For…
This one is straight-forward – if you’re used to Debian and are in a CentOS system looking for /var/log/auth.log you’ll find it in: /var/log/secure Short and sweet!