Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created April 5, 2014 15:41
Show Gist options
  • Save yuuichi-fujioka/9993529 to your computer and use it in GitHub Desktop.
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
# 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