Skip to content

Instantly share code, notes, and snippets.

@clouddueling
Forked from aronwoost/README.md
Last active December 10, 2015 18:08
Show Gist options
  • Save clouddueling/4472874 to your computer and use it in GitHub Desktop.
Save clouddueling/4472874 to your computer and use it in GitHub Desktop.

Launch the instance and connect with ssh.

##Update the server

sudo yum update

##Install php and MySQL packages

sudo yum install https mod_ssl mysql mysql-server php php-mysql php-xml

##Start MySQL service

cd /etc/rc.d/init.d/
sudo ./mysqld start
sudo /usr/bin/mysql_secure_installation //follow instructions

##Setup startup scripts for apache and MySQL

cd /etc/rc.d/rc3.d
sudo rm K15httpd
sudo rm K36mysqld
sudo ln -s ../init.d/mysqld S30mysql
sudo ln -s ../init.d/httpd S85httpd

##Make mod_rewrite (.htaccess) work in subdirectories

cd /etc/httpd/conf
sudo cp httpd.conf httpd.conf.backup // Make a backup just in case
sudo nano httpd.conf

Find <Directory "/var/www/html"> Replace AllowOverride none with AllowOverride all

(optional if apache is running already, restart it)

sudo service httpd restart

##Start apache

sudo /etc/rc.d/init.d/httpd start

##Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment