How to optimize WordPress with Ubuntu VPS

Ubuntu Virtual Private Server optimized for WordPress

Category: WordPress

WordPress

  • Google Review plugins for WordPress

    In a highly competitive market, Google Reviews is a great tool to convince customers that the manufacturer is of the highest quality in every way 📈. One of our clients claims that services such as Trustpilot and Google Reviews are among the more essential tools for gaining new customers. Below, we’ve listed five WordPress plugins for Google Reviews.

    Google Reviews Widget By RichPlugins

    Google Reviews Widget on WordPress org

    Google Reviews Widget home page.

    Google Reviews Widget
    (453 total ratings)
    Google reviews widget and shortcode! Shows Google reviews on your WordPress website to increase user confidence and SEO.
    RichPlugins
    60,000+ active installations
    Tested with 5.3.3

    WP Google Review Slider By LJ Apps

    WP Google Review Slider on WordPress.org

    WP Google Review Slider homepage.

    WP Google Review Slider
    (138 total ratings)
    Easily create a slider to display your Google Places business reviews in your Posts, Pages, and Widget areas!
    LJ Apps
    20,000+ active installations
    Tested with 5.4.1

    Reviews and Rating – Google Business By Noah Hearle, Design Extreme

    Reviews and Rating – Google Business on WordPress.org

    Reviews and Rating – Google Business homepage

    Reviews and Rating – Google Business
    (30 total ratings)
    Shortcode and widget for Google reviews and rating. Give customers a chance to leave their own rating/review; includes Structured Data for SEO.
    Noah Hearle, Design Extreme
    5,000+ active installations
    Tested up to: 5.4.1

    Expensive solutions

    These Google Reviews solutions are not available through WordPress.org

    Embedsocial

    WP Business Reviews is the solution that we previously used.

  • Easy to use alternatives to WordPress

    WIX and Weebly are the two best alternatives to WordPress
    Sometimes the conclusion is that WordPress is just an overkill for your needs. Some come to the conclusion that WordPress is simply “too much”.

    WordPress alternatives

    There are simpler and equally good alternatives to WordPress.

    and

    WIX and Weebly are the two best alternatives to WordPress

    Connect with a WIX expert

    Upwork, Freeup and Freelance is where you find Weebly and Wix experts as well as experts on most other things related to the Internet.

    Fast and simple migration from WordPress to Wix

  • How to use your WordPress domain with Cloudflare Workers

    On the Cloudflare DNS tab change your A-records to a dummy IP.

     

    Use IP: 1.2.3.4

     

    Open the config file
     

    wrangler.toml

     
    and add the line:
     

    [env.production]

     
    Then add the route line:
     

    route = "www.example.com/*"

     
     
    You’d should prefix the domain with www according to this post.

     

     

    Now you are ready to publish the static WordPress site with this command:

     

     

    wrangler publish  --env production

     

     

    References about using a domain with Cloudflare Workers static WordPress

    Publish To Your Domain

     

  • How to innstall Cloudflare Wrangler, Node.js and npm to publish static WordPress sites

    How to innstall Cloudflare wrangler, npm and Node.js on Mac OSX

    Install Node.js via homebrew

    brew install node
    	

     

     

    Update the shell

    bb ~/.zshrc
      
    bb ~/.bash_profile

     
    Add the following values:

     

    # Node.js and npm
      
    export LDFLAGS="-L/usr/local/opt/icu4c/lib"
      
    export CPPFLAGS="-I/usr/local/opt/icu4c/include"
      
    export PATH="/usr/local/bin:${PATH}"
      
    PATH="/usr/local/bin:${PATH}"
    

     

    Restart Shell

     

    source ~/.zshrc
      
    source ~/.bash_profile

     

     

     

    Verify that Node.js and npm is installed

    • Test Node

      To see if Node is installed, type  

      node -v
      		

        in Terminal. This should print the version number so you’ll see something like this:     v0.10.31 .

    •  

    • Test NPM

      To see if NPM is installed, type  

      npm -v
      		

        in Terminal. This should print the version number so you’ll see something like this     1.4.27

     

    Install wrangler with npm

     

    npm i @cloudflare/wrangler -g
    	

     

    Once you have installed Wrangler, deploy your first Cloudflare Worker.

     

    $ wrangler generate --site my-worker
      
    $ cd my-worker
      
    $ # update your wrangler.toml with your Cloudflare Account ID 
      
    $ wrangler config 
      
    $ wrangler publish
      
    	

     

     

    References for post about Cloudflare Wrangler and Node.js

    Wrangler project page on GitHub

     

    Hosting Static WordPress Sites on Cloudflare Workers

     

    Setting up Node.js and npm on Mac OSX

     

     
     

    Install Node.js and npm using Homebrew on OS X and macOS

  • Get notifications with Slack.com when WordPress goes down.

    Our experience is that e-mail is a huge time-thief. That is why we migrate as many services and functions from e-mail to Slack.com as we can.

    The following four free services supports Slack.com:

    UptimeRobot

    FreshPing

    StatusCacke

    Fake warnings about service down

    CloudFlare.com will give fake warnings unless you whitelist the service in the CloudFlare firewall.

    Lists of IP addresses

    UptimeRobot IP to be whitelisted in CloudFlare.com firewall

    StatusCake

     

    Check some tekst in the robots.txt file

    You can use some text in your robots.txt file for verifying that your site is running.

  • How to install WP-CLI with 🍺   Homebrew

    How to install WP-CLI with 🍺 Homebrew

    Install WP-CLI with 🍺 Homebrew to maintain WordPress with the least use of time. The easiest path would be Homebrew when you need WP-CLI on Mac OS. After installing Homebrew type the following commands:

     

     

     

    This will connect you to the third-party Homewbrev repository with the required formula. Then issue the command

    brew install wp-cli

     

     

     

    That’s all. Now you are ready to install and maintain WordPress on your Mac using Terminal or another client for the command line     Homebrew is a great tool to install WP-CLI on Mac OS

  • How to add a new virtual host on Ubuntu and Apache cheat sheet

    Configure the domain name

    Configure and test that your domain name really points to your server.

     

     

     

    Create the MySQL database on Amazon RDS

    A fast and easy tool to create a new MySQL database on Amazon RDS is the free MySQL Workbench

     

     

     

    Create root folder

    NB: Replace example.com with your domain

    cd /var/www/

    Then create the domain

    mkdir example.com

    Change to the root folder

    cd /var/www/example.com

     

     

     

    Create Apache virtual host

    cd /etc/apache2/sites-available

    Use a old config file as a template

    sudo cp 01-existing-domain.com.conf 02-example.com.conf

    Open the new config file to edit

    sudo nano 02-example.com.conf

    Replace all occurrences of existing-domain.com with example.com

    Activate the new configuration file

    sudo a2ensite 02-example.com.conf

    Restart Apache to activate the new virtual host

    sudo service apache2 restart

     

     

     

    Install WordPress

    Update WP-CLI

    wp cli update

    Download wordpress

    wp core download

    Generate the config file named wp-config.php

    NB: Replace: dbname, user, dbpassword and dbhost with your values.

    wp core config --dbname=wordpress --dbuser=user --dbpass=password --dbhost=dcfgvr.1bagob.0002.euw1.cache.amazonaws.com --dbprefix=wp_ --skip-check

    Install WordPress

    NB: Replace URL, Blog Title, adminuser, password, and e-mail with your values.

    wp core install --url="https://www.example.com" --title="Blog Title" --admin_user="adminuser" --admin_password="password" --admin_email="email@domain.com"

     

     

     

    Change file and folder permissions

    NB: Replace “/var/www/html/” with the path to your root folder.

    sudo chown -R www-data /var/www/html/ && sudo chgrp -R www-data /var/www/html/ && sudo find /var/www/html/ -type f -exec chmod 644 {} \; && sudo find /var/www/html/ -type d -exec chmod 755 {} \; && sudo chown www-data:www-data -R /var/www/html/ && sudo usermod -aG www-data ubuntu && sudo chmod -R g+w /var/www/html/ && sudo chmod 660 /var/www/html/wp-config.php

    Test that everything works correctly.