Ubuntu Web Server Setup

The Engagement 4Cast

Ubuntu Web Server Setup

Blog

08/20/2018

Grant Commodore

As an intern at 4site Studios, one of the tasks assigned to me was to learn how to set up Ubuntu servers on Amazon Web Services. After watching a number of tutorials and reading over countless forums, I have created this step by step documentation on how to set up the server.

Prerequisites:

Step 1: Launching an EC2 Instance

Step 2: Configuring and Installing Apache

Step 3: Securing your site using Let’s Encrypt

Step 4: Redirecting HTTP to HTTPS (Virtual Host Method)

ServerName www.yourdomain.com

DocumentRoot /usr/local/apache2/htdocs

SSLEngine On

# etc...

Redirecting HTTP to HTTPS (.htaccess Method)

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

Step 5: Installing MySQL

Step 6: Installing PHP 7.2

Step 7: Installing WordPress

  Step 8: Creating a WordPress Database

Resources:

Setting up the Instance: https://medium.com/@jameshamann/setting-up-an-ubuntu-ec2-instance-from-scratch-78a166167a22

https://www.youtube.com/watch?v=v0g1M5bb9u4&authuser=1

How to SSH into the Instance:

https://www.youtube.com/watch?v=4WQe_-DAn1E&authuser=1

https://linuxacademy.com/howtoguides/posts/show/topic/17385-use-putty-to-access-ec2-linux-instances-via-ssh-from-windows

Installing Apache:

https://tutorials.ubuntu.com/tutorial/install-and-configure-apache#4

Securing the site:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04

Installing MySQL:

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

Installing PHP 7.2:

https://thishosting.rocks/install-php-on-ubuntu/

Installing WordPress:

https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/

https://www.techrepublic.com/article/how-to-install-wordpress-on-ubuntu-16-04/

Install the Lamp:

https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/

About the Engagement 4Cast

4Site Interactive Studios is a talented troupe of web professionals who are passionate about creating tools to support digital marketers. We love to hear from our community! Reach out to us with your thoughts and questions. And don’t forget to subscribe below to get notified when we post new blogs – no spam, just content👍🏼

Subscribe & stay ahead of the crowd with sage marketing tips and predictions.

How can we help?