WordPress on LAMP Server

Before Install WordPress. See Appache Server, Appache Server and PHP and Mysql Sever.

[root@www ~]# service mysqld restart
[root@www ~]# service httpd restart
[root@www ~]# service vsftpd restart
[root@www ~]# service named restart

[root@www ~]# chkconfig mysqld on
[root@www ~]# chkconfig httpd on
[root@www ~]# chkconfig vsftpd on
[root@www ~]# chkconfig named on

[root@www ~]# cd /var/www/html
[root@www html]# rm -rf *
[root@www html]# ls

Downoad wordpress from here !

[root@www Desktop]# ls
wordpress-3.4.1.tar.gz
(wordpress package present on Desktop)

[root@www ~]# mv wordpress-3.4.1.tar.gz /var/www/html/

[root@www ~]# cd /var/www/html
[root@www html]# ls
wordpress-3.4.1.tar.gz
[root@www html]# tar -xvzf wordpress-3.4.1.tar.gz
[root@www html]# ls
wordpress wordpress-3.4.1.tar.gz
[root@www html]# rm -rf wordpress-3.4.1.tar.gz
[root@www html]# ls

wordpress

[root@www html]# cd wordpress/

[root@www wordpress]# ls -l

total 164
-rw-r–r–. 1 33 tape 395 Jan 8 2012 index.php
-rw-r–r–. 1 33 tape 19929 May 6 2012 license.txt
-rw-r–r–. 1 33 tape 9177 Jun 27 03:24 readme.html
-rw-r–r–. 1 33 tape 4264 Dec 14 2011 wp-activate.php
drwxr-xr-x. 9 33 tape 4096 Jun 28 01:15 wp-admin
-rw-r–r–. 1 33 tape 1354 May 14 2012 wp-app.php
-rw-r–r–. 1 33 tape 271 Jan 8 2012 wp-blog-header.php
-rw-r–r–. 1 33 tape 3522 Apr 10 2012 wp-comments-post.php
-rw-r–r–. 1 33 tape 3177 Nov 1 2010 wp-config-sample.php
drwxr-xr-x. 4 33 tape 4096 Jun 28 01:15 wp-content
-rw-r–r–. 1 33 tape 2726 Jan 10 2012 wp-cron.php
drwxr-xr-x. 8 33 tape 4096 Jun 28 01:15 wp-includes
-rw-r–r–. 1 33 tape 1997 Oct 23 2010 wp-links-opml.php
-rw-r–r–. 1 33 tape 2341 Apr 22 2012 wp-load.php
-rw-r–r–. 1 33 tape 29084 Jun 27 00:23 wp-login.php
-rw-r–r–. 1 33 tape 7712 May 2 2012 wp-mail.php
-rw-r–r–. 1 33 tape 9916 Apr 27 2012 wp-settings.php
-rw-r–r–. 1 33 tape 18299 Apr 21 2012 wp-signup.php
-rw-r–r–. 1 33 tape 3700 Jan 8 2012 wp-trackback.php
-rw-r–r–. 1 33 tape 2788 Feb 17 2012 xmlrpc.php
[root@www wordpress]# mv * /var/www/html

(moving these above files to /var/www/html/)
[root@www wordpress]# cd /var/www/html

[root@www html]# rm -rf wordpress/

(because this directory is empty after moving files in html)

[root@www html]# ls -l

total 164
-rw-r–r–. 1 33 tape 395 Jan 8 2012 index.php
-rw-r–r–. 1 33 tape 19929 May 6 2012 license.txt
-rw-r–r–. 1 33 tape 9177 Jun 27 03:24 readme.html
-rw-r–r–. 1 33 tape 4264 Dec 14 2011 wp-activate.php
drwxr-xr-x. 9 33 tape 4096 Jun 28 01:15 wp-admin
-rw-r–r–. 1 33 tape 1354 May 14 2012 wp-app.php
-rw-r–r–. 1 33 tape 271 Jan 8 2012 wp-blog-header.php
-rw-r–r–. 1 33 tape 3522 Apr 10 2012 wp-comments-post.php
-rw-r–r–. 1 33 tape 3177 Nov 1 2010 wp-config-sample.php
drwxr-xr-x. 4 33 tape 4096 Jun 28 01:15 wp-content
-rw-r–r–. 1 33 tape 2726 Jan 10 2012 wp-cron.php
drwxr-xr-x. 8 33 tape 4096 Jun 28 01:15 wp-includes
-rw-r–r–. 1 33 tape 1997 Oct 23 2010 wp-links-opml.php
-rw-r–r–. 1 33 tape 2341 Apr 22 2012 wp-load.php
-rw-r–r–. 1 33 tape 29084 Jun 27 00:23 wp-login.php
-rw-r–r–. 1 33 tape 7712 May 2 2012 wp-mil.php
-rw-r–r–. 1 33 tape 9916 Apr 27 2012 wp-settings.php
-rw-r–r–. 1 33 tape 18299 Apr 21 2012 wp-signup.php
-rw-r–r–. 1 33 tape 3700 Jan 8 2012 wp-trackback.php
-rw-r–r–. 1 33 tape 2788 Feb 17 2012 xmlrpc.php

[root@www html]# cp wp-config-sample.php wp-config.php
[root@www html]# vim wp-config.php
file before editing

wordpress1

and after editing

wordpress2

[root@www html]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@www html]# cd
[root@www ~]# firefox http://www.mc712.com

1

2

3

4

5

6

7