How to install WordPress in Ubuntu Server 12.04 LTS Precise Pangolin

How to install WordPress in Ubuntu Server 12.04 LTS Precise Pangolin

Step 1. Install LAMP server on ubuntu server, to install LAMP Server in Ubuntu server 12.04 you can follow instructions @LAMP Ubuntu Server 12.04 LTS

Install LAMP Stack (Linux,Apache, Mysql, PHP) with command below:
sudo apt-get install lamp-server^
Install PHP5 (Some applications require other PHP5 mods) with command:
sudo apt-get install php5 php5-gd php5-mysql php5-curl php5-cli php5-cgi php5-dev
Install phpmyadmin
sudo apt-get install phpmyadmin

Step 2. If you do not have a problem when installing lamp server in ubuntu server 12.04, we proceed to install wordpress

sudo apt-get install wordpress

Step 3. Make a symbolic link to the Apache2 directory /var/www/ , The wordpress installation placed in directory /usr/share/wordpress folder

sudo ln -s /usr/share/wordpress /var/www/wordpress

Step 4. install WordPress with the supplied script, the script placed in directory /usr/share/doc/wordpress/examples/.

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

After execute this script, it will creates the MySQL database and user wordpress for the new MySQL database named localhost. If you have installed virtual host on server and/or already know your URL, it is best to name your database the same as your URL. Also if you plan on hosting multiple blogs with different virtual hosts, each needs a differently named database.

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress_preciseserver blog.preciseserver.com

Step 5. For automatic updates to occur, the folder and all its files and subfolders wordpress must be owned by www-data:

chown -R www-data /usr/share/wordpress

Now, open your web browser to install wordpress, type on address bar http://localhost/wordpress

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s