Tag Archives: ec2-user

How to change/update key pair for ec2 instance – AWS

NEW and Easy way: Login to AWS Console. Go to the Network and Security >> Keypair.Give the name of your keypair (mykeypair) and keytype (RSA) and Private keyformat (.pem). and click on the create keypair. It will ask you to download .pem file in your local machine. Save it at and remember the location.Login to…
Read more

Changing the Time Zone on Amazon Linux

TIP: If you are using a Linux server with, Amazon Linux, RDS database and PHP, you also need to change the timezone settings on them! Amazon Linux instances are set to the UTC (Coordinated Universal Time) time zone by default, but you may wish to change the time on an instance to the local time…
Read more

How to install PHP 7 and MySQL on EC2 Instance – Amazon

1. Install Apache 2.4 and PHP 7.0 on Amazon Linux AMI # Remove current apache & php (If you have installed a earlier version or you are having problems. Don't worry this WILL NOT remove any of your files, and it will make backup's of any config files you have). sudo yum remove httpd* php*…
Read more

How to update PHP to latest version on AWS EC2

Warning: Before doing anything, make backups!   Remove old versions of PHP and Apache The old Apache and PHP versions in the server can conflict with the new install. So it is recommended to stop the web server and remove them using the commands: sudo service httpd stop sudo service mysqld stop sudo yum remove httpd* php*…
Read more

Allow user ec2-user (Amazon AWS) write access

To allow user ec2-user (Amazon AWS) write access to the public web directory (/home6/producw6/public_html/blackmoretech), enter this command via Putty or Terminal, as the root user sudo: chown -R ec2-user /home6/producw6/public_html/blackmoretech Make sure permissions on that entire folder were correct: chmod -R 755 /home6/producw6/public_html/blackmoretech
Read more

How to create folder on amazon ec2 linux

To create a folder in the root directory through an ssh terminal and use that folder for your application: sudo mkdir /myApp Next, set write permissions to myApp folder sudo chmod -R 777 myApp Done, now you can add/edit files in that directory as ec2-user!
Read more