" RHEL "

How to secure an OpenVZ cPanel /tmp directory

Recently on an OpenVZ VPS we kept getting messages from ConfigServer Security and Firewall stating “lfd on server.host.com: Suspicious File Alert”, with the message pointing specifically to a file in the /tmp directory. After going through the files I didn’t find anything that looked suspicious in nature (exploit, malware, etc), but I did notice that this older VPS did not have the /tmp directory mounted correctly to secure it. When I attempted to use cPanel’s built in /scripts/securetmp I got an error saying the loop module wasn’t detected/installed “*** Notice *** No loop module detected” (more…)

How to setup a WordPress PHP site with Nginx, PHP5-FPM, and MySQL using Ajenti V with working Permalinks

While beta testing Ajenti-V and attempting to setup a simple WordPress site, I ran into enough problems to warrant creating this tutorial.  Mainly because the way Ajenti-V sets up Nginx, there was a good hour of troubleshooting and testing that I had to do before getting a fully functioning site that had working permalinks.  Below I will describe exactly what needs to be done to get a full WordPress site up and running with Nginx, MySQL, PHP5, and Ajenti-V.

(more…)

Generate an inode report (file count) for Debian, CentOS, cPanel, RHEL, with INODES shell/bash script

If you have every used shared hosting, or are involved with the hosting business in any way, you should already know what an inode is. Each time a file is created, uploaded, and so on, an inode is created. This inode stores information like ownership, permissions, etc … basically all the metadata about the file. What is the purpose of limiting the amount of files/inodes? Because each shared host will have many customers on the same server, customers that have excessive amounts of inodes (anywhere from 100,000 to 500,000 and up), can cause a heavy load on the server during backups, general operation, and can be taxing on hard drives. Most of the time excessive amounts of inodes is due to cache scripts installed by the user, catchall email accounts, and normally the customer/user doesn’t even know they exist. Well fear no more, I have created a shell/bash script that will help generate reports, and soon notify you about inode usage… (more…)

cPanel Multiple Daily, Weekly, Monthly Backup Rotation with IONICE and NICE

If you’ve ever been the unfortunate person to need a weekly backup when the daily, weekly, and monthly backups for cPanel are all the same, you have probably found out that you end up being SOL one day every month.  This was unacceptable in my opinion as it defeats the purpose of having all of those backups, and luckily there is already a solution that has been around for a while now. (more…)