Skip to main content

Posts

Showing posts with the label AWS EC2

Step To Host Local Custom Wordpress Site (i.e from Xampp in My case) to AMAZON EC2 instance.

1. Create AWS account and create ec2 instance for same as follows: -> select Linux AMI ->t2.micro ->security groups must be http,secure group and custom tcp (3306 for mysql) ->key generate(.pem file) -> launch instances 2. on windows create .ppk file from pem using puttygen 3. login to your instance using putty host - ec2-user@xxxxxxxxxxxxx user - ec2-user ssh(auth)-ppk file connection ---> Success 4. after successful login perform these commands > [ec2-user ~]$ 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 > ls -l /var/www >  sudo usermod -a -G apache ec2-user > sudo chown -R ec2-user:apache / var /www > echo " <?php phpinfo(); ?> " > /var/www/html/phpinfo.php > http:// my .public .dns .amazonaws .com /phpinfo.php > sudo yum list installed httpd24 php70 mysql56-s...