Installing Wordpress 3.01 In Ubuntu 10.04

Wordpress is an Open CMS and often used for blogging.


Installation

1. Make sure you have Apache, MySQL and phpMyAdmin installed.

2. Download the source from the Wordpress website.

3. Extract the source mv it to /var/www/.

4. Next, we need to create a database for Wordpress. This can be done using phpMyAdmin or MySQL.

(a) Using phpMyAdmin,

i) Log in to phpMyAdmin, and enter a database name of your choice, for example wordpress. Click Create.

ii) Go to Privileges, and see if there's a user for wordpress. If not, then create one. Click on Add a new user, and enter a user name and a password for the user. Make sure you have Use text field: selected in the drop down menu.

iii) Click Go.

iv) GO to Privileges again and click the Edit icon in the last column Action of User overview for wordpress.

v) Under Database-specific privileges, select wordpress from the Add privileges to the following database drop down menu. The page refreshes. Click Check All to select all privileges, and click Go.


(b) Using MySQL,

i) varsha@varsha-laptop:/var/www$ mysql -u root -p
Enter password:


ii) mysql> CREATE DATABASE wordpress;

iii) Assuming you are creating a user wp_user for the database wordpress (you may use a different username),

mysql> CREATE USER wp_user;


iv) Choose a password of your choice.

mysql> SET PASSWORD FOR wp_user = PASSWORD("password");


v) mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "wp_user"@”localhost” IDENTIFIED BY "password";

vi) mysql> FLUSH PRIVILEGES;

vii) mysql> EXIT


Configuration


1. Go to the wordpress directory.

varsha@varsha-laptop:~$ cd /var/www/wordpress

2.We need a configuration file for Wordpress.

varsha@varsha-laptop:/var/www$ sudo cp wp-config-sample.php wp-config.php

varsha@varsha-laptop:/var/www$ sudo gedit wp-config.php

Go to the 19th line and make changes accordingly.

// ** 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', 'wp_user');

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

/** MySQL hostname */
define('DB_HOST', 'localhost');

Save and exit.

3. Open your browser and in the address bar type: http://127.0.0.1/wordpress/. You'll get a Wordpress Welcome page. Enter a Site Title, Username, Password and Your E-mail. Check Allow my site to appear in search engines like Google and Technorati, if you opt for it. Click Install Wordpress.


Installation complete!



Comments

  1. Hey, What is the advantage of running wordpress in localhost? Is is only the offline storage? Is there any way to synchronize offline stored blog posts to wordpress.org

    BTW, your blog has lot of interesting posts about Linux.

    ReplyDelete
  2. It's for development purposes. You can later host it on a server.

    ReplyDelete

Post a Comment