Build WordPress blog Platform under Ubuntu

Source: Internet
Author: User
Tags wordpress blog

WordPress is already a very popular PHP Blog system, below to explain how to use WordPress under the ubuntu Environment Build a blog system website:

(1), Configuration environment

1, install the necessary software

Open Terminal:

sudo apt-get install apache2

sudo apt-get install libapache2-mod-php5 php5

sudo apt-get install mysql-server-5.0 Mysql-common mysql-admin

sudo apt-get install Php5-mysql

2.mysql initialization configuration

by Command sudo mysql-admin can access MySQL graphical interface, which can then be used to set up a database as a database for building a Web site, such as creating a website database as the database behind the blog system website.

also by using the command: mysql-u root-p Enter the password entered MySQL command line interface, so you can also use the command line to create the appropriate database.

3. Start apache2 and MySQL server

Sudo/etc/init.d/mysql start

Sudo/etc/init.d/apache2 start

( 2 ), WordPress installation

1. Preparatory work:

Download WordPress , then unzip, and put it into apache2 directory (typically in /var/www directory), and modify the WordPress the permissions of the folder are used as follows:


Tar xvzf wordpress-2.2.tar.gz

sudo cp-rf wordpress/var/www

sudo chown-r www-data:www-data wordpress(Modify permissions)

2.WordPress Configuration

Enter http://localhost/wordpress Enter

then make the corresponding database and other settings to complete WordPress installation of the.

If you encounter a wp-config.php file that cannot be created, before run in /var/www/wordpress/ Directory to create a file wp-config.php and then copy the corresponding prompt content into this file can click run to configure WordPress has.

When the WordPress installation is complete, the extranet will be able to access your own WordPress site through the corresponding IP address .

Follow-up: can apply for a domain name, let the domain name and IP address to bind, when the IP address and domain name binding can be accessed through the domain name of their site. This can be done by the WordPress above the operation to achieve the purpose of building their own website.

Build WordPress blog Platform under Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.