Wordpress
解决问题
Operating system Ubuntu 12.04
1.1 Installing Apache and PHP modules
sudo apt-get install apache2
sudo apt-get install libapache2-mod-php5 php5
1.2 Installing MySQL
$ sudo apt-get install mysql-server-5.0 Mysql-common mysql-admin
1.3 Installing the MySQL module for PHP
$ sudo apt-get install Php5-mysql
1.4 Configuring MySQL
$ mysql-u Root Mysql-p
Initial login without root password, directly enter the line
The following 2 sentences create the database and database user that WordPress needs
mysql> CREATE DATABASE db_wordpress;
Mysql> Grant all privileges the db_wordpress.* to [e-mail protected] identified by "WordPress" with GRANT OPTION;
2. Start Apache and MySQL
SUDO/ETC/in it d/apac< Span id= "mathjax-span-29" class= "Mi" >he 2s ta rt Sudo/etc/init.d/mysql start
3. Install WordPress
WGET−CHTTP://WORDPRESs. Org/lat< Span id= "mathjax-span-75" class= "Mi" >es t. Tar gz Tar-xvzf latest.tar.gz
SUDOCHOWN−RWWW−Dat a: Www −d at aw or dp re ss sudo cp-rf wordpress/var/www/
4. Configure WordPress
CD/VAR/ Www/wor< Span id= "mathjax-span-146" class= "Mi" >dp re ss/ sudo cp wp-config-sample.php wp-config.php
$ sudo gedit wp-config.php
Find the following similar 3 sentences and modify the connection fields for your database
Define (' db_name ', ' db_wordpress ');
Define (' Db_user ', ' user_wordpress ');
Define (' Db_password ', ' WordPress ');
5. Finish installing WordPress
Open Firefox input http://localhost/wordpress/If everything goes well, you can do the initialization configuration of WordPress in the Web interface!w
A freshman WordPress note