How To Install and Configure own Local Wordpress server on Centos 6...& RHEL-6...

WordPress is a free and open source blogging tool and a content-management system based on PHP and MySQL, which runs on a web hosting service.
More Info..Click

1- Set Static IP  
2- Change Hostname  
3- Disable Selinux

Step-1 Set Static IP
[root@server ashutosh]# vim /etc/sysconfig/network-scripts/ifcfg-eth0


Step-2 Change Hostname

[root@server ashutosh]# vim /etc/sysconfig/network

[root@server ashutosh]# vim /etc/hosts         server

[root@server ashutosh]# hostname

Step-3 Disable Selinux

[root@server ashutosh]# vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.

Step-4 Download WordPress Archive and Extract

[root@server ashutosh]# cd /var/www/html/

[root@server html]# wget

Simple output

--2014-05-08 13:26:32--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5810471 (5.5M) [application/octet-stream]
Saving to: “latest.tar.gz”

100%[=================================================>] 5,810,471    173K/s   in 33s    

2014-05-08 13:27:16 (172 KB/s) - “latest.tar.gz” saved [5810471/5810471]


[root@server html]# # tar xzf latest.tar.gz

[root@server html]# tar xzf latest.tar.gz

[root@server html]# chown -R apache.apache wordpress

[root@server html]# ll

total 5688
-rw-r--r--.  1 root   root   5810471 Apr 16 23:36 latest.tar.gz
drwxr-xr-x.  5 apache apache    4096 Apr 16 23:36 wordpress

[root@server html]# chmod -R 755 wordpress

Step-5 Create MySQL Database and User

 [root@server html]# mysql -u root -p
Enter password:

mysql> CREATE DATABASE wp_db;
mysql> GRANT ALL ON wp_db.* to 'wp_user'@'localhost' IDENTIFIED BY '_secret_password_';
mysql> quit

Step-6 Configure Apache VirtualHost  

[root@server html]# vim /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
    DocumentRoot /var/www/html/wordpress
    <Directory /var/www/html/wordpress>
         Allowoverride All
    ErrorLog logs/
    CustomLog logs/ combined

Note- If you already have another virtualhost created in config file, make sure to enable NameVirtulHost for using multiple VirtualHosts. 

Step-7 Now Restart httpd Service

[root@server html]# /etc/init.d/httpd restart

Stopping httpd:                                          [  OK  ]
Starting httpd:                                            [  OK  ]

[root@server html]# 

Step-8 Finish Installation using Web Installer 

Now Open Firefox or Any Other Internet Browser and then Type and Create a configuration file. ...

Click on Let’s Go button

  Fill the database details and click “Submit“.

click on “Run the Install“.  

 Enter Details for your WordPress and click Install..

After completing above step, You have installed WordPress successfully, Now you will get WordPress success installation message. 

 Login To WordPress Admin Panel ..

 Welcome to WordPress Dashboard.

WordPress Server Configuration Has Been Completed...

So Enjoy...


Click Back..                                Click Home..