1. 安装apache2
aptitude install apache2
2. 安装mysql
aptitude install mysql-server-5.0
3. 安装php5
aptitude install php5
4. 创建数据库sworld
mysql -u root -p mysql
mysql> create database sworld;
mysql> use sworld;
mysql> grant all on sworld.* to sworld@localhost;
mysql> use mysql;
mysql> update user set password=password('pass') where user = 'sworld';
mysql> quit;
5. 下载wordpress最新版本
wget http://wordpress.org/latest.zip
6. 解压到/var/www(apache2默认目录)
mv latest.zip /var/www/
unzip latest.zip
7. 将wp-config-sample.php改成wp-config.php
cd /var/www/wordpress
mv wp-config-sample.php wp-config.php
8. 修改wp-config.php
9. 进入页面http://localhost/wordpress/