How to optimize WordPress with Ubuntu VPS

Ubuntu Virtual Private Server optimized for WordPress

Category: EC2

EC2

  • Send WordPress form input to Slack.com

    E-mail can be time consuming and a hassle.

    Slack.com could be a nice alternative. Gravity Forms has a free plugin that will send the exact same message.

    • It is easy implement
    • Slack.com messages is searchable
    • Slack.com is encrypted using port 443
    • Fast and easy to set up and configure
    • You will get notified
  • How to activate your free Amazon Web Services account

    You need a phone and a debit or credit card to activate your free AWS account.

    If you don´t exceed your free quota of 30 GB storage and 15 GB bandwidth each month, Amazon is charging your card the first time after 13 months. Until 13 months has passed, the phone number and card are only used to verify your identity. From the 13´t month after signing up Amazon will charge you for the usage the past month. You can easily reduce the cost up to 70%. You only sign a 36 months deal with Amazon instead of using the hour by hour deal that is the default agreement.

    From month 13 Amazon will bill you on a monthly basis.

     

    Do you feel managing Amazon would be a hassle?

    Let TBT create, manage and on your behalf pay the charges to Amazon.

    TBT will send you an invoice on PDF as an email attachment in January each year.

    Only one invoice every year!

    You can pay the invoice with PayPal, SWIFT, IBAN, Internet banking or most other ways of your choice. Please contact TBT for further info.

  • How to enable the SOAP CLIENT Class in PHP 7 on Ubuntu

    The SOAP client class is required by some gateways in WooCommerce on WordPress.

    sudo apt-get install php7.0-soap
  • Amazon ElastiCache Cluster PHP 7 Client for Amazon Memcached

    ElastiCache Cluster PHP 7 gives your site a real speed boost.

    W3C Totalt Cache has a “Node Auto Discovery” feature that simplifies the process of using Amazon ElastiCache.

    Follow the instructions described at:

    Installing the ElastiCache Cluster Client for PHP 7

    Folo
    Do NOT run the command

    sudo apt-get install gcc g++

    This is not needed.

    Add to the Apache php.ini and not the CLI php.ini

    If you add the statement to the PHP.INI for CLI – Command Line Interface -, then W3C Totalt Cache ” Node Auto Discovery:” is not able to locate the ElastiCache servers. You need to add the statement to the “apache2 php.ini” file. By following this process:

    Download the file from the “ElastiCache” section at https://aws.amazon.com
    Use a SFTP client to upload the file to

    /home/ubuntu/tmp/

    Extract the file to access the module.

    tar -xvzf AmazonElastiCacheClusterClient-2.0.3-PHP70-64bit-libmemcached-1.0.18.tar.gz

    Go to the unzipped file

    cd artifact

    Copy the module to the correct folder:

    sudo cp amazon-elasticache-cluster-client.so /usr/lib/php/20151012/amazon-elasticache-cluster-client.so

    Add the following statement to php.ini for Apache

    extension=amazon-elasticache-cluster-client.so

    To open the PHP.INI file type:

    sudo nano /etc/php/7.0/apache2/php.ini

    Then restart Apache

    sudo service apache2 restart

    To uninstall the old client

    The Google PageSpeed Apache module at the time of writing only supports Memcached.

    You should remove the old general Memcache if already installed on your server.

    sudo apt-get remove PHP-Memcache
    
    sudo service apache2 restart
    

    It is not necessary to install the old memcache client when using the Amazon Memcached client as described here

     

  • 99 CloudFlare IP module for Apache

    .htaccess files with access control and apps like the anti-spam module from Automatic / WordPress wil not work unless the correct IP address is displayed.
    (more…)