How to Install WordPress Blog on Fedora 16

Share this Article :

In this post, i will share with you on how to install WordPress blog on Fedora 16 server. WordPress is an open-source blogging platform. It’s a free blogging tool and content management system (CMS) based on PHP and MySQL. Follow this howto guides to install the WordPress on Fedora 16. This post assumed that apache and mysql has been setup on this server. If not, proceed to the following Apache and MySQL installation howto :

1. Login as a root and download latest wordpress file :

[[email protected] ~]# wget http://wordpress.org/latest.tar.gz

Enter documentroot “/var/www/html”

[[email protected] ~]# cd /var/www/html
[[email protected] blog]# pwd
/var/www/html

2. Extract the lates.tar.gz files to current directory. In this post, i will extract wordpress file into documentroot “/var/www/html” :

[[email protected] html]# tar xvzf /root/latest.tar.gz

3. Rename extracted wordpress to blog for easier and better naming :

[[email protected] html]# mv wordpress blog

4. Now it’s turn to create wordpress database. Login to your mySQl database ;

[[email protected] ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.14 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

5. Create Database name “wordpressdb” :

mysql> CREATE DATABASE wordpressdb;
Query OK, 1 row affected (0.07 sec)

6. Create user “wordpressuser” with password “wordpresspassword” :

mysql> CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'wordpresspassword';
Query OK, 0 rows affected (0.00 sec)

7. Grant all privileges to “wordpressdb” to user ” wordpressuser” from localhost access :

mysql> GRANT ALL PRIVILEGES ON wordpressdb.* to [email protected];
Query OK, 0 rows affected (0.00 sec)

8. Check and verify the granted access for user “wordpressuser” :

mysql> SHOW GRANTS FOR 'wordpressuser'@'localhost';
+----------------------------------------------------------------------------------------------------------------------+
| Grants for [email protected]                                                                                   |
+----------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'wordpressuser'@'localhost' IDENTIFIED BY PASSWORD '*E62D3F829F44A91CC231C76347712772B3B9DABC' |
| GRANT ALL PRIVILEGES ON `wordpressdb`.* TO 'wordpressuser'@'localhost'                                               |
+----------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

mysql>

9. For better security, make wordpress folder readable only from browser :

[[email protected] ~]# chmod 755 /var/www/html/blog/

10. Go to your web server terminal or ssh to web server. Copy and rename wp-config-sample.php to wp-config.php:

[[email protected] ~]# cp /var/www/html/blog/wp-config-sample.php /var/www/html/blog/wp-config.php

11. Modify the wp-config.php:

[[email protected] ~]# vi /var/www/html/blog/wp-config.php

12. Change below line to above:

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

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

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

13. To configure wordpress, navigate the browser to http://servername/blog/

wordpress

14. Please complete the form Click “Install WordPress”

Site Title : Blog Title
Username : Prefered username
Password, twice : Your password
Your E-mail : Your Email

wordpress

15. To login, navigate the browser to http://servername/blog/wp-login.php

Leave a Reply