" OpenVZ "

How to fix mysql-server depends on mysql-server-5.5; however: Package mysql-server 5.5 is not configured yet.

Recently while attempting to setup a new GitLab server on Ubuntu 14.04 using my iGitLab installer script, I ran into an issue when the script attempted to install MySQL (mysql-server) through APT.  The specific error was  dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet.

I tried removing MySQL and reinstalling, even attempted to configure through mysql-server-5.5, none of which worked, but luckily I did find a way to easily fix this …


How to remove Proxmox "No Valid Subscription" pop up message from Proxmox 3+

Recently with version 3.1+ of Proxmox, if you don’t have a license subscription, they made it where a message box pops up on screen that says “You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.” … this is because in order to use the “Enterprise” repository you must pay for a subscription. The basics of it are they still provide a free repository, but those packages are not as heavily tested and verified as the enterprise repository. Either way when you, or one of your clients/customers, logs into Proxmox interface, it shows that annoying nag message box now. Luckily there is an easy way to remove it…

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…)

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…)