Server

Redirect HTTP to HTTPS in VestaCP with NGINX

14th March 2017

Very simple trick here, but has a few people at a road block. If you’re running NGINX on VestaCP then the following will redirect all HTTP traffic to HTTPS traffic. Just make sure you’ve got a SSL certificate set-up and working. (more…)

Test Clamd (ClamAV Scanner)

11th November 2016

test clamd/clamavRecently I had to test clamd/clamAV to do this today just to make sure my antivirus scanner was working. I’m a big fan of not installing antivirus software for e-mails, because I strongly believe SpamAssassin eliminates it however, sometimes your clients or e-mails have been around for years – and these days it’s getting even harder to eliminate spam and viruses.

(more…)

VestaCP Tools Plugin

8th October 2016

I have created a little plugin for VestaCP called the VestaCP Tools Plugin (obviously unofficial as they don’t have any official way to create plugins yet). It’s a super simple way to get an overview of what’s going on inside your VestaCP server. It basically lists all the domain names, mail domains, cron jobs, etc globally so you don’t have to login to each individual user to get the data.

vestacptoolsplugin (more…)

VestaCP Server Installer – The Perfect Server

5th October 2016

NOW WORKS WITH THE NEW VERSION 0.9.8-20! 🙂

Please upgrade to VestaCP release 20. A security flaw currently affecting servers is present in release < 20. If upgrade is not yet available, please patch

I decided to create the perfect VestaCP server installer script (in my opinion) for CentOS 7 (I have only tried it on CentOS 7). Basically, you run it, it asks a few questions and then it sets up a perfect server including CSF, Monit and PHP 7 (if you want it). Amazing, right?

(more…)

Monit SMS notifications with TextBelt for free

29th September 2016

TextBelt is a free service whereby you can receive SMS messages for free. It’s as simple as this:

curl -X POST http://textbelt.com/text \
   -d number=5551234567 \
   -d "message=I sent this message for free with textbelt.com"

So wouldn’t this be cool if we could integrate this with Monit? Well I did just that. With a few lines of code you can receive SMS messages when one of your monit programs goes offline.

(more…)

Reduce PHP-FPM memory usage on VestaCP

16th May 2016

VestaCP comes prepacked with PHP-FPM (if you select the option when installing) which manages PHP processes. By default it spawns processes that stay alive constantly eating memory. We can further optimise the PHP-FPM settings by tweaking the configuration that’s made when adding a new domain name in an attempt to reduce PHP-FPM memory usage. (more…)

How to: Install CSF on VestaCP

16th May 2016

Tested on Debian, Ubuntu, and CentOS… how to install CSF on VestaCP.

THIS SCRIPT IS FOR Vesta 0.9.8-15, Vesta 0.9.8-16, Vesta 0.9.8-17, Vesta 0.9.8-18 and Vesta 0.9.8-19.

IT IS ALWAYS A GOOD IDEA TO BACKUP EVERYTHING. BACKUP CSF + VESTA
(more…)