Created
April 5, 2014 15:41
-
-
Save yuuichi-fujioka/9993529 to your computer and use it in GitHub Desktop.
Install wordpress on Ubuntu 12.04.04 LTS.
see also: https://help.ubuntu.com/community/WordPress
This file contains 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
# install wordpress and requirements | |
sudo apg-get install wordpress mysql-server apache2 php5 libapache2-mod-php5 | |
# set wordpress folder to www root | |
# * in other way, setting wordpress folder to DocumentRoot in /etc/apache2/sites-enabled/000-default, it is the same effect as above commands. | |
sudo rm -fr /var/www | |
sudo ln -s /usr/share/wordpress /var/www | |
sudo chown www-data:www-data /usr/share/wordpress/ -R | |
# configuration wordpress and mysql | |
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment