Skip to content

Instantly share code, notes, and snippets.

@shiranGinige
Created April 8, 2015 06:13
Show Gist options
  • Save shiranGinige/a86ebed4cd9c0394d358 to your computer and use it in GitHub Desktop.
Save shiranGinige/a86ebed4cd9c0394d358 to your computer and use it in GitHub Desktop.
Get a PHP server running in AWS
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