Created
December 1, 2012 05:59
-
-
Save netmarkjp/4180740 to your computer and use it in GitHub Desktop.
wordpress quick install for AmazonLinux
This file contains hidden or 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
# 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