WordPress is a free and open source blogging tool and a content management system (CMS) based on PHP and MySQL. It has many features including a plug-in architecture and a template system. WordPress is used by over 16.7% of Alexa Internet's "top 1 million" websites and as of August 2011 manages 22% of all new websites. WordPress is currently the most popular blogging system in use on the Internet. –Source: Wikipedia
Being Wordpress one of the most popular, well, THE most popular blogging platform, and being Ubuntu the most popular Linux distribution. It is a good idea to show you how to install Wordpress on an Ubuntu Server.
It is really easy, and you may be running Wordpress in no more than 15 to 20 minutes.
Install Ubuntu server (By the time of this writing I'm using 12.10 Quantal Quetzal).
- Download it from Ubuntu server download page
- Install it following the instructions, be sure to select the LAMP option when you get to this page:
Install Wordpress from the repositories
I like this way, as it is easier, and configures (almost) everything for you.
sudo apt-get install wordpress
Link the folder where Wordpress is to the default web folder in Ubuntu
sudo ln -s /usr/share/wordpress /var/www/wordpress
Run the supplied script to install the database and MySQL user on Ubuntu.
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
It is recommended anyway to run this other command instead of the one above. Specially if you plan to have Virtual servers (strongly recommended), or if you plan to install multiple Wordpress copies on the same server.
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress_domain wordpress.domain.com
That is assuming you own the domain domain.com, and you need to have your an A or CNAME record in you DNS already pointing to wordpress.domain.com
Now, restart Apache:
sudo /etc/init.d/apache2 restart
Go to the url of your newly installed Wordpress copy from your browser, finish the configuration, and you should end with something like this:
It should not take you more than 20 minutes the whole installation of Linux and Wordpress.