Sunday, January 10, 2010

How to install wordpress

Step 01: Download the latest version of wordpress from http://wordpress.org/download/. You will find both .zip and .tar.gz as downloadable format. Choose one of them and then unzip wordpress.

Step 02: The next step is to create a database and a user for wordpress.

You can use cpanel mysql database to create a database and mysql user and then add permission the user to use the database.

Also you can use phpmyadmin user interface to create your WordPress username and database.

Mysql client can also be used if you are comfortable to use shell or command line tool. Using mysql client,
i) Login to mysql client.
$ mysql -u root -p

ii)Create a database named wordpress.
mysql> CREATE DATABASE wordpress;

iii)Create a user name wp_userand assign privilege to use wordpress database.
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "wp_user"@"localhost" IDENTIFIED BY "password";

iv) Flush the privileges
mysql> FLUSH PRIVILEGES;
mysql> EXIT

Step 03: Set up wp-config file.
You can either create and edit the wp-config.php file yourself, or you can skip this step and let WordPress try to do this itself. If you let wordpress to create you still need to provide database name, database user and password to wordpress.

If you want to manually edit the wp-config file first rename the file wp-config-sample.php to wp-config.php and then change the value of DB_NAME, DB_USER, DB_PASSWORD and DB_HOST to adapt the changes.

Step 04: Upload these file to Server.
After extracting and doing changes upload/ftp the extracted changed Wordpress file to the server in the location where you want to install wordpress. You can install on root directory or in subdirectory.

If you have shell access in your unix server hosting then you can use "wget" command to download the zip or .tar.gz file from wordpress website and then using "unzip" or "tar" tool you can extract the files. Then using "vi" editor you can edit wp-config file in server or let wordpress to create one.

Step 05: Run the Install Script.
Open the WordPress installation script by accessing wp-admin/install.php in your web browser.
If you copied WordPress files in the root directory, open http://example.com/wp-admin/install.php in your browser.

If WordPress can't find the wp-config.php file, it will tell you and offer to try to create and edit the file itself. (You can do also do this directly by loading wp-admin/setup-config.php in your web browser.)

If you want to install WordPress in a subdirectory called wpblog, open link like http://example.com/wpblog/wp-admin/install.php

GUI window will appear and fill the form as it asked. Like your blog title, email.

That's all about wordpress installation. Open your site by visiting index.php

No comments:

Post a Comment