WordPress installation on Ubuntu 12.04

The steps to install WordPress

Download WordPress

To the www folder (or the folder containing the content website)

cd /var/www/

wget http://wordpress.org/latest.tar.gz


tar-xzvf latest.tar.gz

Create WordPress MySQL Database and User

See instructions manipulate the database by using the command line. For example I create database wordpress, user wordpressuser with the password password to use.

Install WordPress

Created file wp-config.php


Edit the file

sudo nano/wordpress/wp-config.php.

Fill out the database, user, password on

** ** MySQL settings-You can get this info from your web host ** **//
/** * The name of The database for WordPress */
define (‘ DB_NAME ‘, ‘ wordpress ‘);

/** ** MySQL database username */
define (‘ DB_USER ‘, ‘ wordpressuser ‘);

/* * MySQL database password */
define (‘ DB_PASSWORD ‘, ‘ password ‘);

Save and exit.

Copy all files in the folder wordpress out with folder www

sudo rsync-avP./wordpress/.

Change ownership folder contains WordPress

sudo chown www-data: www-data *-R
sudo usermod-a-G www-data to wordpress

Now you can proceed with installing WordPress by going to http://site.com/wp-admin/install.php now.

Leave a Reply

Your email address will not be published. Required fields are marked *