How to optimize WordPress with Ubuntu VPS

Ubuntu Virtual Private Server optimized for WordPress

Author: .

  • How to use MAXcdn with WPtouch

    WPtouch is not using W3 Total Cache to speed up page load.

    WPtouch uses its own cache and CDN connection.

    When using MAXcdn.com with WPtouch there is to things to keep in mind.

     

    A.
    In the WPtouch Setting – Power Pack – Distribution Network – you must add https:// to the URL.

    B.
    At MAXcdn.com there is totally different URL for SSL version of the link.

    How to use WPtouch with MAXcdn.com
    The SSL url at MaxCDN.com is totally different than the not encrypted version.

     

  • How to use Google Tag Manager with Wptouch

    The Google Tag Manager – GTM – code needs to be just after the opening tag. Other placements will usually work but is not recommended by Google.

    If you are using CloudFlare then using DuracellTomi’s Google Tag Manager for WordPress is recommended. Since version 1.3 there is no conflict with GTM when using this plugin.

    Child theme

    Using a WPtouch Pro child theme should allow you to add the GTM tag to the mobile theme. The child theme will prevent the changes from being overwritten in an event of a plugin and theme update.

    Create the child theme manually or by using the Make Child Theme extension.

    Manual created child theme

    Copy the header.php template from the parent WPtouch Pro theme (/wp-content/wptouch-data/themes) to /wp-content/wptouch-data/themes/yourchildtheme/ and add the code to the bottom of the file.

    Make child theme extension

    Create a child theme.
    Then choose header.php in -Setting- Make Child Theme – Edit Template -.

    Add the line:

    < ?php if ( functionexists( 'gtm4wpthegtmtag' ) ) { gtm4wpthegtm_tag(); } ?>

    to the bottom of the page. Then chose – Save and Close -.

    This should do the trick.

  • How to use Google Tag Manager with Wptouch

    The Google Tag Manager – GTM – code needs to be just after the opening tag. Other placements will usually work, but is not recomended by Google.

    If you are using CloudFlare then using DuracellTomi’s Google Tag Manager for WordPress is recomended.

  • Enable Apache modules for W3 Total Cache Browser Cache

    Enable Apache modules for W3 Total Cache Browser Cache

    sudo a2enmod expires

    Then:

    sudo a2enmod ext_filter

    Then

    sudo a2enmod headers

    Then restart apache to make the changes take effect

    sudo service apache2 restart
  • WordPress PDF Preview Images requires ImageMagick to work

    How to install imagemagick for php7 on Ubuntu?

    Creating and displaying preview images of PDF files relies on these packages that need to be installed on your server :

    • ImageMagick
    • Imagick
    • Ghostscript

    To install all of these modules run:

    sudo apt-get install php-imagick

    To make the change take effect, restart Apache:

    sudo service php7.0-fpm reload

    More details in this article:

    Using the New PDF Preview Images in WordPress 4.7 in the Real World

    Enhanced PDF Support in WordPress 4.7

    WPTavern

  • How to run WordPress without a server

    Run WordPress without a server is an option today

    The concept of a server is about outdated. Why do you need a server?
    Running the code on Google App Engine, Amazon Lambda, Microsoft Azure Functions, IBM Bluemix OpenWhisk or another stateless solution seems much more sensible and logical.

     

     

    Google App Engine

    Currently, you can run WordPress on Google App Engine. When you Google the term there are many how to´s and useful information. In the WordPress plugins directory, several solutions will ease the transition to serverless computing. Several companies are running production WordPress sites for customers on Google App Engine. There is still some limitations so it might be a bit early to make the transition.

     

     

    Amazon Lambda

    Guess it’s just a matter of time before WordPress runs on Amazon Lambda as a serverless and stateless app.

     

     

    Microsoft Azure Functions

    Another alternative is to run WordPress on Microsoft Azure Functions. The current WordPress runs better on Unix-like operating systems, but this might change.

     

     

    IBM Bluemix OpenWhisk

    The serverless alternative from the computing giant IBM is another option.

  • WP JeOS is an ideal platform for today’s WordPress environment

    An ideal platform for today’s WordPress environment

    Based on small business favorite Ubuntu Linux server, WP JeOS provides an ideal platform for today’s agile WordPress environments in Amazon Web Services virtualized data centers around the globe.

    WP JeOS is a paradigm for customizing

    WordPress JeOS (pronounced “ WordPress juice”) is a perfect minimized host operating system for deployment of WordPress virtual private servers. WordPress Just Enough Operating System (JeOS) is a paradigm for customizing the operating system to fit the needs of WordPress. The platform only includes the operating system components required to support WordPress.

    Your small, fast, secure, stable, robust, scalable, and budget-minded DIY project

    WP JeOS is smaller, faster to boot, and to execute WordPress. The WordPress JeOS server is potentially more secure than an application running with GUI admin panels and GUI configuration- and GUI administration tools. To further enhance performance WP JeOS uses an external database, two or three external cache services, and CDN. WP JeOS leaves the server with only one core task: Running the web server.
    Cloudifying database, cache, CDN, security, and optimization simplifies and distributes crucial points of failure. An ideal basis for small businesses and other budget focused users.

    WP JeOS fundamental values:

    • Fast
    • Secure
    • Stable
    • Robust
    • Future friendly
    • Budget-minded regarding money and hours spent
    • Scalable as your business grows
    • The feeling of satisfaction and reward you get from a DIY project