Wordpress

Since most WordPress hosting servers are LAMP-compatible (Linux, Apache, MySQL, and PHP), I’m writing this 3-minutes WordPress setup guide for Red Hat Linux (my another 3-minutes setup guide attempt).

How to setup or install latest WordPress locally in 3 minutes on Red Hat Linux LAMP?

A LAMP-compatible machine to run the WordPress is powered by any one of the Linux distributions (in this case, it’s Red Hat Enterprise Linux 4), Apache web server, MySQL database version 4.0 or latest and PHP version 4.2 or latest. For simplicity, these following steps are all done in Linux command line with root user ID!

    1. Edit the /etc/hosts file to append a mnemonic name for the Red Hat IP address, e.g:

      1. 127.0.0.1 localhost www.walkernews-test.net

    2. Make sure the MySQL database server and Apache web server are both running. If you’re not sure, just type these commands to restart them:

    3. service mysqld restart

    4. service httpd restart

    5. Download the latest WordPress installation file to the Red Hat Linux LAMP (R-LAMP) machine.

    6. Type mysql (MySQL client or database manager) to connect to the MySQL database server (automatically login with MySQL database admin user privileges under Linux root user ID).

    7. At the MySQL client prompt (“mysql>”), create and configure a testing database for WordPress to store blog posts, login users, etc:

    8. Replace the database name “wtest”, admin user “wtestadmin” and password “wtestadmin-password” with your favour.

      1. CREATE DATABASE wtest; GRANT ALL PRIVILEGES ON wtest.* TO wtestadmin@localhost IDENTIFIED BY "wtestadmin-password"; FLUSH PRIVILEGES; exit

    1. Type show databases; to list all existing databases created in MySQL server. By default, MySQL installation creates two databases named as “mysql” and “test”. So, try NOT to name the testing database for WordPress as “test” or “mysql” or any database name that are already in use!

    2. Create WordPress installation directory and Extract the WordPress installation file downloaded in step 3 to the installation directory:

    3. mkdir /var/www/html/wtest

    4. tar -zxvpf wordpress*.tar.gz (.tar.gz format)

    5. unzip wordpress*.zip (.zip format)

    6. mv wordpress/* /var/www/html/wtest

    7. You can also NOT to create WordPress installation directory and extract all the WordPress installation files in /var/www/html directory, which will make the testing WordPress blog URL seen as “http://www.walkernews-test.net” in web browser (otherwise, it’s http://www.walkernew-tests.net/wtest)!

    8. Edit and configure the WordPress configuration file, i.e. wp-config.php:

      1. define('DB_NAME', 'wtest'); define('DB_USER', 'wtestadmin'); define('DB_PASSWORD', 'wtestadmin-password'); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');

    1. This is the last step to go. Open a web browser (IE7, Firefox, Safari, Opera, etc) to finalize WordPress installation by entering this URL to the web browser Address bar and follow its simple 2-steps instruction:

      1. http://www.walkernews-test.net/wtest/wp-admin/install.php

    1. If you run this step from another machine, you need to edit the /etc/hosts file on that machine accordingly (see step 1), e.g.:

    2. 172.101.20.25 www.walkernews-test.net

    3. On Windows machine, such as Windows Vista, the Linux /etc/hosts file equivalent is called

    4. %windir%\system32\drivers\etc\hosts

    5. Since this is just a local WordPress installation for testing purpose, remember to untick the check-box “I would like my blog to appear in search engine like Google and Technorati” in step 1!

    6. Once the WordPress installation completed successfully, there is a default WordPress administration user ID called “admin” and its auto-generated random password. Remember to copy the password carefully in order to login and change the default password later!

With references:

The official WordPress site outline a “5-minutes WordPress Install” as quick reference for experienced users and a “Detailed WordPress Install” for first-time WordPress user.

Suppose those plain-text references are not intuitive, refer to theflash videos that guide (Blogger) users on how to install WordPress visually (via Cre8d Design)!

If you prefers to Windows-LAMP (WAMP) or other Linux distributions (which the steps are mostly the same), refer to the references of “Install WordPress Locally” at WordPress site.

Resources:

http://www.walkernews.net/2007/07/18/how-to-install-wordpress-blog-in-3-minutes/