AWS Archives - Freelance Wordpress developer Melbourne | Sydney | Gold Coast | Brisbane | https://10webtest.10web.me/category/aws/ Wordpress developer servicing Melbourne, Brisbane, Sydney, Perth, Adelaide, Canberra Mon, 27 Sep 2021 07:42:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 https://www.jane-james.com.au/wp-content/uploads/2021/07/cropped-1901_logo-01-1-32x32.jpg AWS Archives - Freelance Wordpress developer Melbourne | Sydney | Gold Coast | Brisbane | https://10webtest.10web.me/category/aws/ 32 32 Connect your WordPress site to Github/Sentry via your EC2 instance https://www.jane-james.com.au/connect-your-wordpress-site-to-github-sentry-via-your-ec2-instance-2/ https://www.jane-james.com.au/connect-your-wordpress-site-to-github-sentry-via-your-ec2-instance-2/#comments Mon, 27 Sep 2021 07:42:48 +0000 https://alphaomegadigital.com.au/?p=12864 If you maintain a corporate wordpress site with a large database, you are going to need some help debugging it – in fact debugging your site can feel like a full time job without the right tools. Fortunately companies have recognised this and Sentry does an excellent job of error reporting that is way beyond […]

The post Connect your WordPress site to Github/Sentry via your EC2 instance appeared first on Freelance Wordpress developer Melbourne | Sydney | Gold Coast | Brisbane |.

]]>
If you maintain a corporate wordpress site with a large database, you are going to need some help debugging it – in fact debugging your site can feel like a full time job without the right tools.

Fortunately companies have recognised this and Sentry does an excellent job of error reporting that is way beyond what you will get out of google console. You can choose from many languages including javascript, ruby, ASP, elixir and so on but for this example I am going to select PHP since WordPress is a PHP application.

Note: There is a Sentry wordpress plugin which does the same thing, but I had trouble using it with AWS so I have made the connection via SSH.

Step 1.

Before we do anything, you need you go into your AWS dashboard, Ec2 – Security groups – inbound rules and make sure your IP address is added in to SSH on port 22. I have blurred the IP addresses but as long as your Ip is added into your default group, you are good to go.

Step 2.

Next go to EC2 – instances, select your instance and click “connect.” This will bring you to this screen here, where you will see details of how to connect to your Ec2. First, go into terminal and CD to the file where your .pem file is saved for your instance. Once you have done this you can run chmod 400 pemfilename.pem and connect to linux

Step 3.

Now we are connected to linux Amazon ec2, we are going to go to our root directory. For me I ran cd /var/www/html but you should go to the folder containing your HTML files.

Now we are going to run the below commands excluding the dollar signs.

#update ec2 files
$sudo yum update -y 
#Install git in your EC2 instance
$sudo yum install git -y 
#Check git version
$git version

Step 4.

To connect to your Github account run the following:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Your terminal will ask you to enter a file name to save the key and some pass phrases. Just hit enter to save the key to the default file, and continue without using a passphrase.

login to your SFTP client (I use transmit for Mac Os) and file the .ssh hidden folder. and open the file titled id_rsa.pub in text edit. Copy the entire string to your clipboard.

Go to https://github.com/settings/keys and make a new ssh key. You can give it whatever title you want. Paste the key you just copied from id_rsa.pub within the ‘key’ text field and click ‘add ssh key.’ You are now connected to Github and won’t have to sign in every time you want to push to your ec2 instance.

Next, return to your ec2 root directory and make a new directory to clone Github:

$ mkdir projects
$ cd projects
$ git clone [email protected]:my-github-repo

Step 5.

Next we need to install Sentry cli from our root directory in our instance. The docs for php are here. Once you install the Sentry cli, the symfony scripts will run and you will see them install in your terminal like this:

Step 6.

Now we need to check that Sentry CLI has installed in our instance. If you run sentry –version and you return a version number you know Sentry has been installed on your Ec2.

Step 7.

Ok remember how we made a directory called projects in our ec2 that is connected to Github? We are going to CD to that directory, which is currently empty and then clone our site files to that directory using transmit. In the below image, the file on the left is the github directory we created and the one on the right is the root folder of your wordpress directory. Select all files on the right and click upload

Step 8.

Once your files have uploaded (this may take a while) check your remote is setup to fetch and push but typing git remote -v in terminal, and if your branches are correct then don’t forget to do a git commit and send your files from ec2 to your repository.

Step 9.

Once you have finished you can see your Ec2 is connected to Sentry via Github and can now receive error tracking:

Alpha Omega Digital is a WordPress web development agency based in Melbourne, Australia but also services clients from Sydney, Brisbane, Newcastle, Perth, Adelaide, Darwin and Hobart.

The post Connect your WordPress site to Github/Sentry via your EC2 instance appeared first on Freelance Wordpress developer Melbourne | Sydney | Gold Coast | Brisbane |.

]]>
https://www.jane-james.com.au/connect-your-wordpress-site-to-github-sentry-via-your-ec2-instance-2/feed/ 1
How to launch and configure a WordPress instance on AWS – 2021 guide for beginners https://www.jane-james.com.au/how-to-launch-and-configure-a-wordpress-instance-on-aws-2021-guide-for-beginners/ https://www.jane-james.com.au/how-to-launch-and-configure-a-wordpress-instance-on-aws-2021-guide-for-beginners/#comments Thu, 01 Jul 2021 04:49:07 +0000 https://alphaomegadigital.com.au/?p=9963 If you’ve never setup a client project on AWS, the process can be very overwhelming. AWS is far less intuitive than a standard C panel, and requires scanning through the documentation to figure out which instance is going to be best for your client. You client may request AWS hosting for many reasons, but the […]

The post How to launch and configure a WordPress instance on AWS – 2021 guide for beginners appeared first on Freelance Wordpress developer Melbourne | Sydney | Gold Coast | Brisbane |.

]]>
If you’ve never setup a client project on AWS, the process can be very overwhelming. AWS is far less intuitive than a standard C panel, and requires scanning through the documentation to figure out which instance is going to be best for your client.

You client may request AWS hosting for many reasons, but the main two are cost and security. The cost of hosting the same amount of data on AWS vs something such as WpEngine is significantly cheaper.

I have setup and run WordPress through an EC2, and using Lightsail and for beginners lightsail can’t be beat. Here’s why:

  • With Lightsail you can select a static IP address, which means if you need to stop your instance to modify or configure it (which is likely) you will not lose your login credentials.
  • Lightsail gives you all the tools you need to build your server and run WordPress quickly and easily- VPS, SSD storage, backups, data transfer, DNS management, static IP’s and load balancers
  • Lightsail provides login details in your system log to access your WordPress site. This happens when setting up an EC2 as well, but if you forget your password or stop and restart your instance you will have to use the terminal to access your instance via SSH and your .pem file, whereas a static IP in Lightsail allows you to skip this step if you stop/start your instance.

So, here’s a walkthrough on how to setup a WordPress server on AWS using lightsail.

  1. Go to https://lightsail.aws.amazon.com and create a linux instance. You should select the region that is closest to you. In my case that would be Sydney.
SELECT YOUR NEAREST REGION IN AWS

2. Select WordPress from the blueprint options.

BLURPRINT OPTIONS IN AWS LIGHTSAIL

3. Select the plan you require for your server. I recommend the 2GB plan, which is suitable for most websites, however if you select the 512mb or 1G plan, you can always upgrade your server size later on as needed.

jane james wordpress developer AWS lightsail image
AWS LIGHTSAIL HOSTING PLANS

4. Click on the orange square to connect to your instance via SSH

YOUR WORDPRESS INSTANCE WILL DISPLAY UNDER THE INSTANCES TAB

5. Once you SSH to your instance in the browser, the terminal will open and you run this command below to get your WordPress username and password. By default your wordpress username will be ‘user’ but the password will appear in the terminal as circled.

cat $HOME/bitnami_application_password

6. Once you have this, go into https://ipaddress/wp-admin and log in to your site.

7. You should now see your WordPress dashboard.

I hope this helps some of you out, and it really is the lowest barrier to entry in terms of getting started with AWS. I will be posting more complex AWS tutorials in the future, as I’m going for my developer certification, but if you have any questions please drop me an email and I’ll do my best to help you out.

Alpha Omega Digital is a WordPress web development agency based in Melbourne, Australia but also services clients from Sydney, Brisbane, Newcastle, Perth, Adelaide, Darwin and Hobart.

The post How to launch and configure a WordPress instance on AWS – 2021 guide for beginners appeared first on Freelance Wordpress developer Melbourne | Sydney | Gold Coast | Brisbane |.

]]>
https://www.jane-james.com.au/how-to-launch-and-configure-a-wordpress-instance-on-aws-2021-guide-for-beginners/feed/ 818