This is the perfect tutorial, how to install wordpress on Linux Server. For this tutorial, my machine running on Centos 5.4.

[root@server1 ~]# uname -a;date;uptime
Linux server1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 athlon i386 GNU/Linux
Sat Oct 24 17:52:06 MYT 2009
17:52:06 up  2:17,  2 users,  load average: 0.00, 0.00, 0.03
[root@server1 ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@server1 ~]#

Firstly make sure your system already have this 3 package if not follow the 1st step,

1. Install http*, mysql* php*

[root@server1 ~]# yum -y install httpd* mysql* php*

2. Create the new database called “wordpress”

[root@server1 ~]# mysqladmin -u root -p create wordpress

3. Download latest WordPress package

[root@server1 tmp]# wget http://wordpress.org/latest.zip
–2009-10-24 17:27:23–  http://wordpress.org/latest.zip
Resolving wordpress.org… 72.233.56.138, 72.233.56.139
Connecting to wordpress.org|72.233.56.138|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [application/zip]
Saving to: `latest.zip’

[                                                 <=>                ] 2,354,670    136K/s   in 18s 2009-10-24 17:27:42 (129 KB/s) – `latest.zip’ saved [2354670]

4. Unzip latest.zip that contains the WordPress installation file.

[root@server1 tmp]# unzip latest.zip

[root@server1tmp]# ls
latest.zip  wordpress
[root@server1 tmp]# cd wordpress

5. Copy all file in the WordPress folder to directory /var/www/html

[root@server1 wordpress]# cp -a * /var/www/html

6. Rename file wp-config-sample.php to wp-config.php

[root@server1 wordpress]# cd /var/www/html
[root@server1 html]# mv wp-config-sample.php wp-config.php

7. Edit the config file : wp-config.php

[root@server1 html]# vi wp-config.php

* Edit this 3 line to

define(‘DB_NAME’, ‘wordpress’);
define(‘DB_USER’, ‘root’);
define(‘DB_PASSWORD’, ‘mysqlrootpass’);

and replace to this one

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress’);

/** MySQL database username */
define(‘DB_USER’, ‘root’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘**********’);

7. Open your web browser and go to http://yourdomain.com and follow the setup process. Just enter your blog name and email address. After that it will generate user name and password for you. Please change the password after that.

Share

148 thoughts on “Install WordPress on Linux Machine

  1. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You are incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards SchaadAndy

  2. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this web site by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You are amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Shane

  3. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this web site by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my problem. You are amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Craig Yoder

  4. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You’re incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Justin Cassetta

  5. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Shane

  6. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this web site by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You are wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Craig

  7. Magnificent goods from you, man. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I’ve understand your stuff previous to and you are just extremely fantastic. I really like what you have acquired here, certainly like what you are saying and the way in which you say it. You make it enjoyable and you still care for to keep it smart. I cant wait to read far more from you. This is actually a terrific Install WordPress on Linux Machine | AkuAdi My Life, My Journey informations.

  8. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards SchaadAndy

  9. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my problem. You’re amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Cassetta

  10. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You’re wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Nick

  11. I got what you wish, thanks for swing up. Woh I am cheerful to perceive this website through google. Thanks For Share Install WordPress on Linux Machine | AkuAdi My Life, My Journey.

  12. I got what you will, thanks for putting up. Woh I am gladsome to uncovering this website finished google. Thanks For Share Install WordPress on Linux Machine | AkuAdi My Life, My Journey.

  13. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this web site by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my problem. You’re amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Nick

  14. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this website by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my problem. You’re wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Shane

  15. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You are wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Rolf Veronica

  16. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You’re incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Lawrence

  17. This is the turn Install WordPress on Linux Machine | AkuAdi My Life, My Journey journal for anyone who wants to act out out about this subject. You note so often its near exhausting to contend with you (not that I rattling would want…HaHa). You definitely put a new aerobatics on a issue thats been backhand some for geezerhood. Overnice hokum, simply great!

  18. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my difficulty. You are amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Cassetta Nick

  19. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this web site by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my difficulty. You’re wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Shane

  20. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You’re wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Agata

  21. This is the straight Install WordPress on Linux Machine | AkuAdi My Life, My Journey diary for anyone who wants to act out out virtually this matter. You asking so often its nigh effortful to reason with you (not that I truly would want…HaHa). You definitely put a new prolong on a substance thats been shorthand around for age. Metropolis sundries, but uppercase!

  22. Hey There. I found your blog using msn. This is an extremely well written article. I’ll be sure to bookmark it and return to read more of Install WordPress on Linux Machine | AkuAdi My Life, My Journey . Thanks for the post. I will definitely comeback.

  23. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You are amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Lawrence

  24. This is the turn Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to act out out some this subject. You remark so more its most exhausting to contend with you (not that I rattling would want…HaHa). You definitely put a new twisting on a message thats been typed some for age. Pleasant object, but extraordinary!

  25. Fantastic goods from you, man. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I have understand your stuff previous to and you are just extremely great. I really like what you have acquired here, really like what you are stating and the way in which you say it. You make it entertaining and you still care for to keep it wise. I can’t wait to read far more from you. This is really a terrific Install WordPress on Linux Machine | AkuAdi My Life, My Journey informations.

  26. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Schaad Craig

  27. Wonderful goods from you, man. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I’ve understand your stuff previous to and you’re just too great. I really like what you have acquired here, really like what you’re saying and the way in which you say it. You make it entertaining and you still take care of to keep it wise. I can not wait to read much more from you. This is actually a tremendous Install WordPress on Linux Machine | AkuAdi My Life, My Journey informations.

  28. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You’re incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Nick

  29. This is the right Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to essay out out active this subject. You request so more its virtually wearing to discourse with you (not that I really would want…HaHa). You definitely put a new acrobatics on a subject thats been statute around for geezerhood. Prissy choke, just zealous!

  30. This is the right Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to act out out about this theme. You mention so often its nigh wearying to converse with you (not that I real would want…HaHa). You definitely put a new aerobatics on a matter thats been shorthand nearly for period. Overnice choke, simply extraordinary!

  31. Magnificent goods from you, man. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I have understand your stuff previous to and you are just extremely excellent. I really like what you’ve acquired here, really like what you are saying and the way in which you say it. You make it enjoyable and you still take care of to keep it smart. I cant wait to read much more from you. This is really a tremendous Install WordPress on Linux Machine | AkuAdi My Life, My Journey informations.

  32. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my problem. You are incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Nick

  33. Great goods from you, man. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I’ve understand your stuff previous to and you are just too magnificent. I really like what you’ve acquired here, certainly like what you are saying and the way in which you say it. You make it entertaining and you still take care of to keep it smart. I cant wait to read far more from you. This is really a terrific Install WordPress on Linux Machine | AkuAdi My Life, My Journey informations.

  34. This is the accurate Install WordPress on Linux Machine | AkuAdi My Life, My Journey diary for anyone who wants to act out out near this matter. You observance so more its near wearing to represent with you (not that I truly would want…HaHa). You definitely put a new extend on a issue thats been handwritten active for years. Discriminating meaninglessness, only major!

  35. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Craig Cassetta

  36. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You are amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Shane Andy

  37. This is the exact Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to assay out out roughly this content. You observation so some its almost effortful to discourse with you (not that I real would want…HaHa). You definitely put a new revolve on a theme thats been handwritten roughly for years. Squeamish bunk, but zealous!

  38. This is the rectify Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to assay out out nearly this subject. You mark so often its virtually exhausting to argue with you (not that I really would want…HaHa). You definitely put a new spin on a theme thats been codified roughly for years. Nice force, but large!

  39. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Lawrence Yoder

  40. This is the punish Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to assay out out nigh this message. You respond so untold its near wearing to discourse with you (not that I really would want…HaHa). You definitely put a new stunting on a topic thats been statute roughly for geezerhood. City squeeze, only outstanding!

  41. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You are incredible! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Agata Craig

  42. This is the reverse Install WordPress on Linux Machine | AkuAdi My Life, My Journey diary for anyone who wants to assay out out active this matter. You asking so more its virtually wearying to present with you (not that I real would want…HaHa). You definitely put a new stunting on a subject thats been graphical virtually for eld. Metropolis matter, simply majuscule!

  43. This is the exact Install WordPress on Linux Machine | AkuAdi My Life, My Journey blog for anyone who wants to act out out roughly this theme. You mark so much its virtually tiring to fence with you (not that I real would want…HaHa). You definitely put a new prolong on a matter thats been graphical almost for eld. Overnice push, simply eager!

  44. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was suggested this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You’re amazing! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My Journey Best Regards Lisa Schaad

  45. Install WordPress on Linux Machine | AkuAdi My Life, My Journey I was recommended this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You are wonderful! Thanks! your article about Install WordPress on Linux Machine | AkuAdi My Life, My JourneyBest Regards Justin

  46. An newsworthy speech is designer observe. I suppose that you should indite statesman on this subject, it mightiness not be a preconception refer but generally grouping are not enough to talk on such topics. To the next. Cheers like your Install WordPress on Linux Machine | AkuAdi My Life, My Journey.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *