工具
- PHP5
-
MysqL 传送门
- Apache2 传送门
- wordpress 汉化版WordPress
安装PHP5
sudo apt-get install PHP5
MysqL数据库扩展
sudo apt-get install libapache2-mod-PHP5
部署wordpress
Apache2 的加载目录是 :/var/www/work
将下载好的wordpress解压到:/var/www/work
重启Apache2
访问 http://localhost/wordpress
恭喜成功了!
配置wordpress数据库链接
wp-config.php 文件修改
/** MysqL 数据库名称*/
define('DB_NAME','wordpress');
/** MysqL 用户名 */
define('DB_USER','name');
/** MysqL 密码 */
define('DB_PASSWORD','password');
/** MysqL 地址 或 127.0.0.1:7777 冒号后面是指定端口 */
define('DB_HOST','127.0.0.1');
/** 汉化*/
define ('WPLANG','zh_CN');如果wordpress目录没有wp-config.php,这时你复制一份wp-config-sample.PHP,改名:wp-config.php
Holle Word Press!