Steven Sullivan

Install PHP 7.2 on CentOS 7 with VestaCP (How to)

16th March 2018

I’ve published one before on the VestaCP Forums regarding how to install PHP 7.0 on Centos 7 with VestaCP. This tutorial is now for PHP 7.2 which has increased performance over PHP 7.0 and 7.1. If you have a handful of WordPress websites on PHP 5, you should upgrade. If you’re on PHP 7.0 from my previous tutorials, or are using my Server Installer Script then this will also work for you. I would advise upgrading when you have time.

(more…)

Multiple IMAP Accounts plugin for Roundcube

26th January 2018

Roundcube logoAfter some relentless searching I found a great plugin that supports multiple IMAP accounts for Roundcube tucked away on BitBucket. It’s a great tool that simply adds a drop down of the IMAP accounts you’ve set-up  to the top right area of Roundcube, replacing your email address in that area.

(more…)

Serve static content from a cookieless domain in NGINX

1st June 2017

Very simple one to help anyone out there fix the issue regarding serving static content from a cookieless domain in NGINX. This does not require a CDN or sub domain, etc like most tutorials.

It’s simply a few lines of code to add to your host file:

location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js|scss|map|less|woff|woff2|otf|eot|ttf)$ {
   expires     max;
   fastcgi_hide_header "Set-Cookie";
}

(more…)

Backup MX / Backup Email / Secondary MX Server – VestaCP

26th April 2017

Hey guys,

I found a great little tutorial from me back on the VestaCP forums in April 2016 regarding a Secondary MX (backup email server) server for VestaCP – it’s really easy to set up. Essentially what happens is when your main email server is offline or under stress, the third party email server (the one sending the email) sends the email to the secondary email server. Once that happens, the secondary email server attempts to send the email back to the first email server.

Read on for more information.

(more…)

Search Multidimensional Array in PHP

6th April 2017

If you’re using PHP 5.1 or newer, this little function is for you! It’ll search multidimensional array’s and return the top level key so you can pull the data.

(more…)