Ubuntu VMware Tools install with apt-get are recommended to get access to all the features in Ubuntu when virtualizing with VMware. It seems that the tools are installed by default on Ubuntu 18.04.
(more…)
Author: .
-

How to install Ubuntu VMware Tools with apt-get
-
How to increase the max_input_vars in WordPress on Ubuntu 16.04
Increase the max_input_vars in WordPress can be done in several ways. Here is how to increase the max_input_vars value in different ways and then how to confirm the new value. This post is for Ubuntu 16.04 LTS with PHP7
(more…) -

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

-
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.phpTest that everything works correctly.
-

How to add Google Tag Manager to Genesis StudioPress with Duracell
How to add Google Tag Manager to Genesis StudioPress framework with the Google Tag Manager for WordPress plugin
sudo nano wp-content/themes/genesis-sample/functions.php
Then add the following code:
// Add Google Tag Manager code immediately below opening tag add_action( 'genesis_before', 'sas_google_tag_manager' ); function sas_google_tag_manager() { ?> < ?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?> < ?php } // Add Google Tag Manager code end -
Zip PHP extension for Pano2VR and Object2VR from GardenGnome software
Garden Gnome Software WordPress plugin for Pano2VR and Object2VR requires the zip PHP extension to unpack the packages containing panoramas.
sudo apt-get install php7.0-zip
Then restart apache web server
sudo service apache2 restart
-
How to use the CloudFlare AMP cache
CloudFlare has the second AMP cache. The first is provided by Google.
Read more about the “CloudFlare.com Accelerated Mobile Links”
When viewing this page on a iPhone using the Desktop PC theme from Thesis / DIYtheme.com then the Cloudflare’s Accelerated Mobile Links works.
When viewing this page using Wptouch.com, the the AMP won´t work.
AMP test sites by TBT
https://www.bjornespray.no/bruk-bjornespray-isbjorn/
https://www.tbt.no/norsk-tv-utlandet-nrk-tv2-tvnorge/
https://www.tbt.biz/studiopress/
https://www.360p.no/bedre-plassering-google/
https://www.norsk-tv-i-utlandet.no/hvordan-se-norsk-tv-spania-facebook/
https://www.bunadformenn.info/mannsbunad-fra-solor-og-odalen/
https://www.norsk-tv-i-utlandet.no/hvordan-se-norsk-tv-spania-bing/
CloudFlare demo pages
To see how it works, try viewing this post from your mobile device and clicking any of these links:
