cpanel

3
Dec

How to remove VirtFS like a boss

Like a bossRecently I was unfortunate to witness huge filesystem loop on a cPanel server that was caused by combination of VirtFS and Idera's Server Backup software (previously known as R1soft CDP backup). To cut the chase, I had to disable and remove VirtFS for all users on the server. cPanel has documented how to do this on their wiki, but they failed to mention couple of very important things that will help you not to destroy your server.

So, cPanel provided us with nice little script that can unmount orphaned VirtFS mounts. The script is located at /scripts/clear_orphaned_virtfs_mounts and you can get to know it better if you run it with --help switch. Running the script with no arguments will simply unmount obsolete VirtFS mounts (e.g. for terminated account), but if you have to remove VirtFS for an account that is still active, you will have to take a different approach.

12
Sep

AWStats - poor man's download counter

Condescending WonkaA few days ago I was asked to configure AWStats to count downloads of .exe files on an website. I know that it's blindingly obvious that AWStats isn't the right tool for this job, but sometimes you have to pick battles with your clients. To save both my time and sanity I did what I was asked to do.

Interestingly, adding file download tracking functionality to AWStats proved to be very easy. In my case, the website was hosted on a cPanel server where AWStats was already installed, so I won't cover the whole installation procedure.

20
Jul

Change passwords for multiple cPanel accounts (bulk password reset)

Geeks and repetitive tasksThe other day I needed to change passwords for multiple cPanel accounts. Since there was a lot accounts in question, changing passwords manually was out of the question. Changing passwords from shell using passwd utility was also out of the question because that would change only the password for Unix user - MySQL and FTP passwords would remain unchanged. In the end I wrote a simple script which automates changing system, FTP and MySQL passwords for cPanel user.

4
Jan

Fine tuning cPanel autoresponder interval

Y u no answer email?If you enabled autoresponder in your cPanel, then you probably noticed that, by default, the sender gets only one autoreponder message every 8 hours. There is nothing wrong with that. In fact, the purpose of this interval setting is to prevent sending a bunch of emails to the sender who sends more then one email to the user who has enabled autoresponder.

21
Dec

Are your emails being automatically deleted from trash folder on cPanel server?

TrashIf you happen to run Courier IMAP server that comes with cPanel, then you are probably experiencing a rather unpleasant feature . By default, Courier will regularly delete every single email from trash folder that is more than 7 days old.

Considering that most people use IMAP protocol to keep their messages safe and always available on the server, this default option can cause a lot of frustration. Luckily, fixing this issue is rather easy and quick (it takes less than a minute).