How I Started My Blog on WordPress

As one of the most famous Open Source Blog Platforms, WordPress is gradually becoming the primary choice for bloggers. However, installing WordPress might be a tough challenge for bloggers who do not familiar with Linux. So, here’s a quick guide.

Install LAMP

First, you need to install the LAMP environment on your server, which is the abbreviation of Linux, Apache, MySQL, and PHP.

  • Linux is the operating system.
  • Apache is the Web Server which sends static HTML files.
  • MySQL is the database which stores website information.
  • PHP is the runtime environment for WordPress.

Since it might be complex to install the LAMP manually, I recommend you to use an auto installation script: (Source Code)

Install toolkits if you are using Debian or Ubuntu:
apt-get install wget screen git
or if you are using CentOS:
yum -y install wget screen git

Download the script and set permissions:
git clone
cd lamp
chmod +x *.sh

Create a screen and run the script:
screen -S lamp

During the installation process, the only thing you need to do is choosing the recommended settings. The process may take a few minutes.

Install WordPress

Now you have installed the LAMP environment. The next step you need to do is download the latest WordPress and extract the compressed file:
tar -xzvf latest.tar.gz

Then copy the WordPress to the default website path:
mv /data/www/default /data/www/default_old
cp -rf ~/wordpress /data/www/default

Create a database for WordPress: (You need to input your root password.)
mysql -u root -p
CREATE database wordpress;

Finally, open “<Your website IP or Domain>/wp-admin/install.php” in your web browser and WordPress will help you to finish the installation.

Published by

Siujoeng Lau

Liberty will never perish.

Leave a Reply

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