mrkeck Sharing the Love

16Jun/160

EC2 Amazon Linux LAMP Bitbucket Setup

sudo yum update -y
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd
sudo service httpd start
sudo chkconfig httpd on
chkconfig --list httpd
sudo groupadd www
sudo usermod -a -G www ec2-user
exit
#Log back in
groups
sudo chown -R root:www /var/www
sudo chmod 2775 /var/www
find /var/www -type d -exec sudo chmod 2775 {} \;
find /var/www -type f -exec sudo chmod 0664 {} \;
ssh-keygen
#Enter 3 times
ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
ssh-add -l
cat ~/.ssh/id_rsa.pub
#copy that to Bitbucket
vim ~/.ssh/config
"
Host bitbucket.org
IdentityFile ~/.ssh/id_rsa
"
:w
:q
chmod 600 ~/.ssh/config
cd /var/www/html
git clone git@bitbucket.org:ACCOUNT/NAME.git

Filed under: EC2 Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.