johndunning

PHP Basics

Variables In PHP, a variable starts with the $ sign, followed by the name of the variable. Rules for PHP variables: A variable name must start with a letter or the underscore character. A variable name cannot start with a number. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ …

PHP Basics Read More »

Coding in PHP

Install MAMP install MAMP https://www.mamp.info/ brew cask install mamp launch MAMP Preferences General -> Start Servers Ports -> 8888, 8889 PHP -> 7.4.2 WebServer ->Apache note the Document root this is where we are going to create out PHP project MySql -> 5.7.26 Cloud -> ignore Start Servers Create the Play Database From the MAMP …

Coding in PHP Read More »

Create WordPress Multi-Site on AWS LightSail (part 5)

Configure SSL In this post we configure SSL for your site. We will refer to is as newsite.com Install Certbot on LightSail Instance open the ssh console sudo apt-get update sudo apt-get install software-properties-common sudo apt-add-repository ppa:certbot/certbot -y sudo apt-get update -y sudo apt-get install certbot -y Request a Let’s Encrypt Wildcard Certificate open the …

Create WordPress Multi-Site on AWS LightSail (part 5) Read More »

Create WordPress Multi-Site on AWS LightSail (part 4)

Install the Domain Mapping Plugin login to the WordPress console MySites -> Network Admin -> Dashboard Plugins -> Add New search: Domain Mapping scroll down to WordPress MU Domain Mapping click Install Now click Activate Make Multi-site plugin available to all Sites in the Network WordPress console MySites -> Network Admin -> Dashboard Plugins find …

Create WordPress Multi-Site on AWS LightSail (part 4) Read More »

Create WordPress Multi-Site on AWS LightSail (part 2)

Configure WordPress Multi-Site ssh into your running WordPress instance cd /opt/bitnami/app/wordpress sudo ./bnconfig -machine_hostname yoursite.com Disable the bnconfig tool to stop it resetting the machine hostnameto it’s ip address every time it restarts sudo mv bnconfig bnconfig.disabled Add a WordPress Site as a sub-Domain login to the WordPress console My Sites -> Network Admin -> …

Create WordPress Multi-Site on AWS LightSail (part 2) Read More »