Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Created December 1, 2012 05:59
Show Gist options
  • Save netmarkjp/4180740 to your computer and use it in GitHub Desktop.
Save netmarkjp/4180740 to your computer and use it in GitHub Desktop.
wordpress quick install for AmazonLinux
# Database Name: wp_db
# Database User: wp_user
# Database Pass: wp_pass
sudo yum -y install mysql mysql-server
sudo chkconfig mysqld on
sudo service mysqld start
sudo yum -y install httpd php php-mbstring php-mysql php-pear pcre-devel php-gd php-pecl-apc
curl -L http://wordpress.org/latest.tar.gz | sudo tar zxf - -C /var/www/html/
sudo chown -R apache:apache /var/www/html
sudo chkconfig httpd on
sudo service httpd start
echo "create database wp_db;" | mysql -u root
echo "grant all on wp_db.* to wp_user@'localhost' identified by 'wp_pass';" | mysql -u root
echo "grant all on wp_db.* to wp_user@'%' identified by 'wp_pass';" | mysql -u root
echo "flush privileges;" | mysql -u root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment