This tutorial is how to install WordPress on Ubuntu Linux Desktop using LAMP. Why ? One reason is that you can do a lot of developing (playing around) much quicker as there is no need to use ftp. If You like me, play around with WordPress as a developer (perhaps you create your own theme or plugin), you should install WordPress locally in your Ubuntu Linux Desktop.
You do not need to convert your Ubuntu Desktop into Ubuntu Server. You only need install addition packages that you need to run WordPress on your Ubuntu Linux desktop.
Get ready?! Let?s start to install WorPress on Ubuntu Linux desktop.
You can view my previous post about LAMP Installation On Ubuntu, if you have not already done so.
You can download WordPress from their official website into your Ubuntu desktop.
Extract your WordPress archieve into your server directory
sudo tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/
Prepare MySQL Database for WordPress
Create a database for WordPress on your Ubuntu, as well as a MySQL user who has all privileges for accessing and modifying it. You can use phpMyAdmin to make it easier
- First create dababase: wordpress
- Then create a new user: wordpress with password: wordpresspassword
Write down the values you used for databasename, wordpressusername, hostname, and password for future purpose
Configure WordPress Setting
Copy the wp-config-sample.php file to wp-config.php. Open and edit wp-config.php file
// ** MySQL settings ** // define('DB_NAME', 'wordpress'); define('DB_USER', 'wordpress'); define('DB_PASSWORD', 'wordpresspassword'); define('DB_HOST', 'localhost');
Run the Install Script
Using your favorite web browser (Firefox by default), visit wp-admin/install.php within the directory into which you just installed WordPress on your web site. For example: point your browser to http://localhost/wordpress/wp-admin/install.php
Preview your New WordPress
Point your browser to http://localhost/wordpress.
Well done! You have your own WordPress on Your Ubuntu Linux Desktop.
Happy New Year!