Tag Archives: linux

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

Instruction from AWS EC2 support: Log into your AWS accountgo to your EC2 ConsoleUnder NETWORK & SECURITY, click on Key Pair Click on Create Key PairGive your new key pair a name, save the .pem file. The name of the key pair will be used to connect to your instanceCreate SSH connection to your instance…
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

SSH zip only certain types of files recursively on Linux

If you are looking for a command to run via ssh that ZIPs all files (of a certain type) recursively here you go: 1 - Switch into the website folder, then run zip -R YOURZIPFILENAME '*.php' '*.html' '*.js' '*.css' 2 - You can also run this from outside the website folder: zip -r YOURZIPFILENAME website_folder…
Read more

Go Daddy and PHP.ini file.

If you are using GoDaddy and hosting Linux with them, you may be needing to modify the PHP.ini configuration file. The PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging. First, you need to know how to modify it (or where to…
Read more

Linux Helpful Commands

Here is a list of some helpful Linux commands (all these commands assume you are a ROOT user): Need to search all your files, on your server for a word(s)? grep -r "SEARCH WORDS HERE" . Add on "-l" if you want to return ONLY the file that search word is in. Add on "-i"…
Read more