install softwares:
sudo apt-get install wordpress mysql-server phpmyadmin
make links:
sudo ln -s /usr/share/wordpress/ /var/www/wp sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
restart services:
sudo service apache2 restart sudo service mysql restart
在phpmyadmin中创建wordpress专用用户
config wordpress:
cd /usr/share/wordpress mv wp-config.php wp-config.php.bak 修改wp-config-sample.php 中的用户名和密码,另存为wp-config.php
add administrator
open http://127.0.0.1/wp/ ,set user name and password of wordpress’s admin.