Posts

Showing posts from May, 2018

Install MySql Server and Client phpMyadmin

Steps to Insatll & Secure MySql Server and Install phpmyadmin client Step 1 : Run the below command to install, start, secure MySql server sudo yum update -y sudo yum install -y mysql56-server php70-mysqlnd sudo service mysqld start sudo mysql_secure_installation When prompted, type a password for the root account. i. Type the current root password. By default, the root account does not have a password set. Press Enter. ii. Type Y to set a password, and type a secure password twice. For more information about creating a secure password, see http://www.pctools.com/guides/password/ . Make sure to store this password in a safe place. Note Setting a root password for MySQL is only the most basic measure for securing your database. When you build or install a database-driven application, you typically create a database service user for that application and avoid using the root account for anything but database administration. b. Type Y to remove the a...

Steps to Install a LAMP Web Server on Amazon Linux AMI

Image
Steps to Install a LAMP(Linux,Apache,MySql,PHP) Web Server on Amazon Linux AMI Step 1: First we need to update all the packages on the server and then install the LAMP packages. Then start and enable the httpd service . Below are the commands we need to execute sudo yum update -y sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd sudo service httpd start sudo chkconfig httpd on chkconfig --list httpd   Step 2: Open port 80 and 22 Inbound rules from security groups . Go to Network & Security click on Security group under that select your instance Group ID then go to actions to edit inbound rules and open port 80 . Similar way other required ports can be opened  Step 3: Check the home directory details of apache ls -l /var/www [ec2-user ~]$ ls -l /var/www  this is by default owned by root total 16 drwxr-xr-x 2 root root 4096 Jul 12 01:00 cgi-bin drwxr-xr-x 3 root root 4096 Aug 7 00:02 error drwxr-xr-x 2 root root 4096...

Steps to Connect AWS Instance using SSH client putty

Image
Steps to Connect AWS Instance using SSH client putty Step 1: Create AWS free account and launch aws instance please refer the article  https://techupdatelinux.blogspot.in/2018/05/steps-to-launch-aws-instance-and.html Step 2:  Download putty and puttygen (RSA and DSA key generation utility) from  https://www.putty.org/ or  https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html website Step 3: To generate private key using puttygen utility we should have already downloaded public key (.pem) while launching aws instance . Step 4: Open puttygen utility, click on load button and upload .pem key. Then it will ask to save the key as private key . Next click the button "Save private key ", this will ask the location to save the key in .ppk format . Please find below screenshots  Step 5 : Find server public IP address and username by logging into aws your account .  Please find below screenshot Step 6: Open putty utility an...

Steps to launch AWS Instance

Image
 Steps to launch AWS Instance Step 1: Create Amazon aws free account using URL  https://aws.amazon.com/ Step 2: Login to your Aws account and go to EC2 Dashboard  then Click Launch Instance which will show list of available Amazon Machine Image (AMI ) . Then select the AMI as per your requirement and make sure to select   t2.micro type which comes under free tier . Then there is a option to add the additional storage and configure security groups using which we can open the ports. Then click on Review and Launch user will get the option to select the key pair for authentication (public key) . Download the key pair and click on Launch Instance . This will take few minutes to activate the instance . Do not share the key pair with anyone for security reason . Using this key pair user can generate private key and connect using ssh client putty. Step 3: Go to EC2 Dashboard, click on Running Instances . We can see the status of the launched instan...