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
Prerequisites:
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
------------------------------
DEVICE="eth0"
IPADDR=192.168.1.5
NETMASK=255.255.255.0
HWADDR="00:16:D4:39:5B:6F"
NM_CONTROLLED="yes"
ONBOOT="yes"
------------------------------
Step-2 Change Hostname
[root@server ashutosh]# vim /etc/sysconfig/network
HOSTNAME=server.ashu.com
[root@server ashutosh]# vim /etc/hosts
192.168.1.5 server.ashu.com server
[root@server ashutosh]# hostname
server.ashu.com
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.
SELINUX=disable
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Step-4 Download WordPress Archive and Extract
[root@server ashutosh]# cd /var/www/html/
[root@server html]# wget http://wordpress.org/latest.tar.gzS
Simple output
--------------------------------------------------------------------------
--2014-05-08 13:26:32-- http://wordpress.org/latest.tar.gz
Resolving wordpress.org... 66.155.40.249, 66.155.40.250
Connecting to wordpress.org|66.155.40.249|: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> FLUSH PRIVILEGES;
mysql> quit
Step-6 Configure Apache VirtualHost
[root@server html]# vim /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerAdmin root@ashu.com
DocumentRoot /var/www/html/wordpress
ServerName server.ashu.com
<Directory /var/www/html/wordpress>
Allowoverride All
<Directory>
ErrorLog logs/server.ashu.com-error_log
CustomLog logs/server.ashu.com-access_log combined
</VirtualHost>
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. ...
http://192.168.1.5/
or
http://server.ashu.com
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.
http://server.ashu.com/wp-admin/
or
http://192.168.1.5/wp-admin/
Welcome to WordPress Dashboard.
WordPress Server Configuration Has Been Completed...
So Enjoy...
______________________________________________________________________________________