Created
April 8, 2015 06:13
-
-
Save shiranGinige/a86ebed4cd9c0394d358 to your computer and use it in GitHub Desktop.
Get a PHP server running in AWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create the Ec2 instance | |
2. Connect to the server | |
ssh -i testpair.pem ec2-user@52.64.80.130 | |
3. Update all packages | |
sudo yum update | |
4. Install php | |
sudo yum install php | |
5. edit the index.php file | |
cd var/www/html | |
vim index.php | |
<?php | |
echo 'hello world' | |
?> | |
6. Start the web server | |
sudo service httpd start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment