I found myself needing to switch between PHP versions on the command line running under the Plesk environment on a CentOS server. Some apps ran under PHP 5.6, some under 7.0 and others being pushed towards 7.1. This script allows me to be quickly switch between them. It looks for the current PHP version in […]
Archive | Linux
SugarCRM and mod_ruid2
We tried suPHP on our servers for a short time. What suPHP does, is run PHP as the same user as owns that website. It will then only execute PHP scripts that are owned by that same user, and are not writeable by the group, i.e. not writeable by any other user. The idea of […]
Apache Segmentation Fault (11) – related to memory
This is a problem we have on both a dedicated server and a VPS. It is not something I’ve seen before and cannot find any descriptions of others seeing it. I’m logging it here in case a solution comes walking past, so I have my fingers crossed. We are running: CentOS 6.4 Apache/2.2.15 PHP 5.3.19 […]
VM Network Issues on Moving a Virtual Machine
This issue has left me scratching my head for a while, but I think I have finally found a solution. I have been generating virtual machines (VMs) for a client to run on their laptops out in the field. The VMs run a copy of the client’s SugarCRM instance, on top of Ubuntu 12.04 32-bit […]
List crontabs (cron entries) for all linux users
We had a problem with Plesk, allowing a hacker to set up cron processes on our Linux server as various users. After cleaning a few up, I used this command to list the cron tables for all users: awk -F: ‘{print $1}’ /etc/passwd | xargs -l1 crontab -lu 2>/dev/null It’s a handy command to keep […]
qmhandle.pl – manage qmail queues
This tool has been a life-saver on our hosting servers many times. If your mail queues fill up with spam – perhaps incoming, or perhaps after your server has been hacked (timthumb – that caught a lot of people), then spam can be deleted from the outgoing queue. For example, to remove all mail from […]