With WordPress optimized hosting, should you DIY or have someone else manage it for you? In this guide, we explore both options and show you how to set up your own VPS…
There are many options when it comes to setting up hosting for your WordPress website. You can choose a shared hosting plan (where your site performance is at the mercy of over-provisioned servers), pay a bit more to run your very own VPS (virtual private server) with dedicated resources, or pay just a little bit extra to have someone else manage a VPS for you.
VPS hosting is web hosting that uses a Virtual Private Server. As we explain here, a VPS is a nice compromise between shared and dedicated hosting.
You can customize the VPS resources to suit your needs in terms of disk space, memory, processing power, and bandwidth, and scale it if your site’s traffic increases.
DIY VPS hosting normally refers to running an unmanaged VPS (whereas with a “managed” VPS, the web hosting company handles everything like system setup, control panel installation, and technical support, leaving you free to just manage your web hosting account).
Although choosing unmanaged or DIY VPS hosting tends to be more affordable than managed VPS hosting, you need to handle everything yourself.
WordPress has its own server requirements, so if you plan to choose DIY VPS hosting specifically for WordPress, you’ll need to have technical experience with managing servers and running WordPress.
Setting Up A WordPress-Optimized VPS
VPS web hosts are plentiful and many offer great cloud-hosted servers at reasonable costs.
Keep a copy of this password handy in a notepad on your computer. It will make connecting to the droplet easier. You will create a separate user to connect with in the future, so this is simply setting a strong password for the root user that will no longer be actively used.
Once you have done this, SSH to the server using the IP and root password from your initial setup.
You will be prompted to enter your domain name. Press CTRL+C to exit this script for now. We’ll come back to this configuration later.
Create a non-root user (replace myusername with your username):
Note: The above is by no means an exhaustive, all-encompassing list of hardening measures (that’s a whole topic on its own), but it’s a really good start if you plan to set up and run your own VPS.
9. Increase PHP limits for WordPress performance:
sudo vi /etc/php/7.0/apache2/php.ini
Search for these settings, and raise any existing values to the following:
sudo service apache2 restart
Once you have done this, navigate to your domain and step through the WordPress installation wizard.
DIY WordPress VPS vs Managed WordPress Hosting
If this all seems like a lot of work just to have a secure VPS server running WordPress, you’re right!
Thankfully, many of the above steps could be put into a script to automate the process, but the truth remains that the price to pay to have a self-managed VPS is…well…managing it all yourself!
This requires not only having the technical experience to set up and run the server but also troubleshoot and fix any problems.
Alternatively, if you’d prefer to have the equivalent performance and security of a DigitalOcean VPS without having to do it all yourself, then consider hosting with WPMU DEV! For just a few more dollars a month over the cost of a self-hosted DigitalOcean droplet, you get world-class VPS performance with world-class 24/7 technical and hosting support…all done for you!
This article was written in collaboration with:
Phil Martin – Capital Web Design. Phil uses his twenty years of web design experience to achieve one goal: give back to his hometown by building modern websites for businesses and nonprofits in the Canadian capital!
Note: We do not accept articles from external sources. WPMU DEV members, however, may contribute ideas and suggestions for tutorials and articles on our blog via the Blog XChange.
About us and this blog
We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.
At Marketing Solution Australia we strive to deliverer elegant responsive websites for your business integrated with our personal SEO Optimization package to bring your pages on the first page of Google.