WordPress

How to setup server-side cron for WordPress Multisite

When WordPress is setup as a Multisite/network installation, the cron event process needs to be called for each individual site in the network. This can either be manually setup or solved using a simple script. This script was originally created by Bjørn Johansen. Note: if you still receive emails regarding…

File not found 404 Retina.js @2x images

If you see 404 file not found errors with @2x in the file name, in either your site’s loading waterfall or the logfiles – you should add this block of code first in you .htaccess file. When retina.ja tries to fetch images that do not exist, a full version of…

Lock down xmlrpc.php in WordPress

he WordPress xmlrpc.php endpoint can be misused as en endpoint for brute force attacks.  If you do not use xmlrpc.php for any integrations, you might as well disable it completely. Adding these lines to your .htaccess file will disallow access to the endpoint for everyone. Edit your public/.htaccess file and…

How to use Servebolt Optimizer for WordPress

Our plugin, Servebolt Optimizer, enables you to: Enable our best practise database optimisations for WordPress and WooCommerce Read the errorlog directly from the WordPress Admin Enable the Full Page Cache How to use it with WP CLI Install the plugin wp plugin install servebolt-optimizer --activate [--network] You should now be able…

Optimizing WordPress

WordPress by default is blazingly fast at Servebolt, but there are some things you can do to your WordPress site that optimizes it even further. Consider this some basic WordPress hygiene. Database indexes In the examples we have used the standard wp_ prefix for table names, this may differ between…

Basic Optimization for Performance and Scalability

This article gives insight into some basic adjusments you should make to your code, database and possibly workflow, that will result in improved performance when your application runs on our servers. By going through these few steps a websites performance can changes from being sluggish – to being snappy and…

Update URLs in database

WP-CLI & wp search-replace Sometimes you need to update a URL in your database, like when you move your site to a new domain. A very easy method of doing so is to use the command-line tool WP-CLI. WP-CLI comes preinstalled on all bolt, the only thing you need to…

Helpful WP-CLI commands

We use WP-CLI a lot, and here is the most common WP-CLI commands we use in a cheat sheet. WP-CLI man pages Create admin user List all users: Replace all URLs in the database List plugins  To get the status of all plugins Run Servebolt Optimizer Analyze tables Analyzing tables…

Manage WordPress and WooCommerce via SSH with WP CLI

The command line interface for WordPress – called WP CLI – is installed for all hosts on Servebolt and is available when you log in to your site with SSH.  You can use WP CLI in the /public folder (where your site is) by running the wp command. The following commands…

How to backup your WordPress site

We include a daily backup of all files and databases for our clients. These backups are performed nightly and can be restored through our support, as described here: How do backups work at Servebolt. It’s also possible to do an instant manual WordPress site backup. This is recommended when performing…

WordPress Basic Configuration

All our servers are optimized and tuned for performance, and deliver much better performance than other hosting solutions. Because of this, the need for cache- aggregation an optimization plugins is reduced. Generally, you will experience that avoiding the use of performance-related plugins, and keeping the number of plugins to a…

Optimizing WordPress on Servebolt

Congratulations on your decision to move or set up your WordPress site on Servebolt. Our performance specialists have a set of standard tasks when setting up or moving a site to Servebolt. These tasks are not secret, nor complicated. Follow this to-do list to make sure your WordPress is as…

Setting up WordPress with external SMTP

The best way to send email through WordPress is with an external SMTP server. This is because (dedicated) SMTP servers are usually better setup to avoid spam, using SPF, blacklists, port blocking and more.  With an external SMTP server your emails are less likely to end up in your users…

Installing WordPress on Servebolt

We currently are offering two different version to install WordPress on your Servebolt site. With WP-CLI The easiest method for installing WordPress is by connecting with SSH. We have pre-installed WP-CLI, a command line tool for WordPress on all Bolts. To install WordPress with WP-CLI you simply log on with…

Update Revolution slider with WP-CLI

The best way to update your URLs on our servers is with WP-CLI’s search-replace function.  But if you have the Revolution Slider plugin activated you might’ve encountered that it breaks after a URL update. This happens because Revslider writes their URLs different than normal in their database tables. Here’s the…