How To Install WordPress in Ubuntu Server 12.04 LTS

In How To 2134 views

WordPress is a free and open source blogging tool and a dynamic 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 14.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 CMS in use on the Internet. It was first released on May 27, 2003, by Matt Mullenweg as a fork of b2/cafelog. As of December 2011, version 3.0 had been downloaded over 65 million times – Wikipedia

Currently, the Latest version of WordPress is available in Official Ubuntu Software repository, Follow instructions how to install Wordpress in Ubuntu Server 12.04 LTS Precise Pangolin

How to install Wordpress in Ubuntu Server 12.04 LTS Precise Pangolin

Step 1. Install LAMP server on ubuntu server, to install LAMP Server in Ubuntu server 12.04 you can follow instructions @LAMP Ubuntu Server 12.04 LTS

Step 2. If you do not have a problem when installing lamp server in ubuntu server 12.04, we proceed to install wordpress

sudo apt-get install wordpress

Step 3. Make a symbolic link to the Apache2 directory /var/www/ , The wordpress installation placed in directory /usr/share/wordpress folder

sudo ln -s /usr/share/wordpress /var/www/wordpress

Step 4. install WordPress with the supplied script, the script placed in directory /usr/share/doc/wordpress/examples/. 

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

After execute this script, it will creates the MySQL database and user wordpress for the new MySQL database named localhost. If you have installed virtual host on server and/or already know your URL, it is best to name your database the same as your URL. Also if you plan on hosting multiple blogs with different virtual hosts, each needs a differently named database.

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress_preciseserver

Step 5. For automatic updates to occur, the folder and all its files and subfolders wordpress must be owned by www-data:

chown -R www-data /usr/share/wordpress

Now, open your web browser to install wordpress, type on address bar http://localhost/wordpress

Install wordpress Manually in Ubuntu server 12.04

if you want to install latest wordpress manully on ubuntu server,you can follow instructions below

Login on your ubuntu server,login as root

sudo -i
wget -O wordpress.tar.gz
tar -zxvf wordpress.tar.gz
cd wordpress
cp -R wordpress /var/www
chown -R www-data /var/www/wordpress

Log in to mysql server as root user

mysql -u root -p

Create database with command below,in case we’ll create database with name “dbwordrpess”

CREATE DATABASE dbwordpress;

Create a new user of username wordpressuser, with command below

CREATE USER wordpressuser;

Create password “wppassword” for user “wordpressuser”;

SET PASSWORD FOR wordpressuser = PASSWORD("wppassword");

Grant user wordpressuser all permissions on the database.

GRANT ALL PRIVILEGES ON dbwordpress.* TO wordpressuser@localhost IDENTIFIED BY ‘wppassword’;

Log out from mysql server


Now wordpress ready to install..

install wordpress


Tags: #Apache #Ubuntu Server 12.04 #Wordpress

How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
This tutorial will describes how to upgrade
Must read×