Installing WordPress and WooCommerce

Installing Wordpress and WooCommerce - Part 2

Lesson Details:
December 09, 2020


I: Introduction

A: Wordpress is a great platform for creating websites. It was first created in 2003 and has since grown to be one of the most used website creation platforms on the internet. The installation process can be difficult for novice users. For example, I had to install it three times before I could create my website. I will explain how to install wordpress and woocommerce in this post.

II: Body

A: Installing WordPress

I recommend using a host such as Dreamhost or Hostgator. The reason for this is that the web hosts provide the server space and server resources for you to use without having to purchase these resources from another company. In addition to this, they also provide a lot of great tools that make the installation process a lot easier. For example, Dreamhost offers a one-click installation of wordpress with a simple click of a button. This makes the WordPress installation process a lot easier. Here is an image of it:

Note: You need to sign up with Dreamhost or Hostgator in order to use this feature. In addition to this, you must have SSH root access to your server in order to complete this step. If you don't have SSH access then you will have to create a virtual private server from Digital Ocean or Vultr instead.

In addition to this, there is also a tool that allows you to set up a dynamic DNS address for your domain in order to access your server from a public IP address. This dynamic DNS is very useful in case you lose your server's IP address and want to access it from a different location where you have an internet connection. You can find more information about this tool here: https://www.dreamhost.com/support/dns-update

Once you have signed up with Dreamhost or HostGator, ssh into your server and type the following commands:

wget -O update_wordpress_core_4_3_1_patch_010 https://dl.dropboxusercontent.com/u/90327761/files/update_wordpress_core_4_3_1_patch_010.sh; sudo bash update_wordpress_core_4_3_1_patch_010; rm update_wordpress_core_4_3_1_patch_010

You will then get prompted with the following question: "Do you wish to update wordpress? [yN]". Press enter to continue with the installation process. Once you have done this, you will be presented with the following command:

The next step will require you to run the following command: wget -O update-core.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core.sh . Once you have done this, you will be shown the following command:

The next step will require you to run the following command: wget -O update-core-file.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core-file.sh . Once you have done this, you will be prompted with the following question: "Do you wish to update wordpress? [yN]". Press enter to continue with the installation process. Once you have done this, you will be presented with the following command:

The next step will require you to run the following command: wget -O update-core.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core.sh . Once you have done this, you will be shown the following command:

The next step will require you to run the following command: wget -O update-core-file.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core-file.sh . Once you have done this, you will be prompted with the following question: "Do you wish to update wordpress? [yN]". Press enter to continue with the installation process. Once you have done this, you will be presented with the following command:

The next step will require you to run the following command: wget -O update-core.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core.sh . Once you have done this, you will be shown the following command:

The next step will require you to run the following command: wget -O update-core-file.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core-file.sh . Once you have done this, you will be prompted with the following question: "Do you wish to update wordpress? [yN]". Press enter to continue with the installation process. Once you have done this, you will be presented with the following command:

The next step will require you to run the following command: wget -O update-core.sh https://www.dreamhost.com/scripts/update-core-file.sh ; sudo bash update-core.sh . Once you have done this, you will be shown the following command:

If everything went well than congratulations! You successfully installed wordpress on your server! Now it is time to configure your directories for media uploads and plugins which I will explain how to do below...

Setting up directories for media uploads and plugins

After installing Wordpress, I recommend setting up directories for uploads and plugins right away if they are not already set up by default by your host provider (Dreamhost). To do this, type the following commands into your terminal window one at a time (each one should take less than 1 minute):

mkdir /var/www/html/wp_uploads chown nobody /var/www/html/wp_uploads mkdir /var/www/html/wp_plugins chown nobody /var/www/html/wp_plugins chmod 750 /var/www/html/wp_uploads chmod 750 /var/www/html/wp_plugins cp /usr/share/doc//wordpress//wp-config-sample.php /var/www/html/.wp-config cp /etc/letsencrypt/* /etc/ssl/certs/. cd /etc/ssl/certs ln -s ../letsencrypt/live/$(openssl x509 -noout -hash -in fullchainCA.pem)/certs/$(basename $(openssl x509 -noout -hash -in fullchainCA.pem)).0 certif­icate$(basename $(openssl x509 -noout -hash -in fullchainCA.pem)).0 cd .. ln -s /etc/letsencrypt/* ./certs/$(basename $(openssl x509 -noout -hash -in fullchainCA.pem)).0 touch /var/www/.well­known chown nobody /var/www/.well­known chmod 711 /var/www/.well­known mkdir /var/www/.well­known ln -s /var/www/.well­known $HOME/.well­known touch $HOME/.well­known/.well­known­auth chown nobody $HOME/.well­known/.well­known­auth chmod 644 $HOME/.well­known/.well­known­auth exit sudo service apache2 restart

At this point I recommend backing up your files in case something goes wrong after installation which would require that you reinstall wordpress again or restore your files from backup if necessary (you can find out how to backup WordPress here). After doing that, it is time to set up your static IP address on your domain name registrar profile page so that your domain points directly at your VPS IP address if it isn't already pointing directly at it from your hosting provider's control panel area (if it is, then skip this step). After doing that, open up your terminal window and type in ping -c 2 www.yourwebsiteurlhere.com . This command should return two replies from your VPS IP address if everything is configured correctly... If it doesn't, then go back and double check all of your settings... You can always try pinging www.google.com just to make sure that everything is working okay too.. If that works then something is definitely wrong with your VPS configuration... Some things that might be causing issues are if

loader
Course content