WordPress is a wonderful and user friendly CMS (content management system), there are so many blogs now a days are using wordpress software for their blogging. Although there are different other CMS software’s are available but wordpress has its own importance due to its amazing features, well this article is not about to discuss advantages of wordpress over other CMS like Joomla but the main aim of this article is to demonstrate. How to install wordpress on your Linux machine whether localhost or remote (web server).
Download the wordpress software
Extract it on www folder (goto the file system then var and then www) it is good to make a separate folder for wordpress.
Now start apache and sql (Applications ? Backtrack ? Services ? HTTPD ? MYSQLD)
There is a need to create a database for wordpress, open terminal and type:
[email protected]:~# mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 104Server version: 5.1.41-3ubuntu12.10 (Ubuntu)
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.
mysql> CREATE DATABASE name;Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILAGES ON name.* TO “username”@”localhost”-> IDENTIFIED BY “passwordhere”;Query OK, 0 row affected (0.00 sec)
mysql> FLUSH PRIVILAGES;Query OK, 0 row affected (0.00 sec)
Now on your browser locate the localhost in my case http://127.0.0.1/wordpress
Now on the database setting panel
User Name: username (entered on Mysql setup)
Database Host: localhost
Table Prefix: wp_
On the next window copy this config code and create a new file paste it then save it to the same directory with the name wp-config.php
Then click on install
Reopen the browser and create an admin account.