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:
Wget-c http://wordpress.org/latest.tar.gz
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