Ubuntu安装中文版WordPress

工具

  1. PHP5
  2. MySql 传送门
  3. Apache2 传送门
  4. 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!

你可能感兴趣的:(Ubuntu)