Install WordPress on Linux Machine

Share

Posted on the October 24th, 2009 under Blogger, Linux, Wordpress by akuadi

No Gravatar

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.

Malaysia Web Hosting

Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>