1. 环境安装

sudo apt-get install apache2
sudo apt-get install postgresql-9.1
sudo apt-get install php5
sudo apt-get install php5-pgsql

2. 下载wordpress, 

wget -O wordpress.tar.gz http://wordpress.org/latest.tar.gz

wget https://downloads.wordpress.org/plugin/postgresql-for-wordpress.1.3.1.zip

3. 解压并放到/var/www目录下
unzip  latest.tar.gz
unzip postgresql-for-wordpress.1.3.1.zip

sudo cp -R wordpress  /var/www
sudo chown jerry:jerry /var/www/wordpress

sudo cp -R postgresql-for-wordpress/pg4wp /var/www/wordpress/wp-content/
cp /var/www/wordpress/wp-content/pg4wp/db.php /var/www/wordpress/wp-content

4. 切换到/var/www/wordpress目录,拷贝一份wp-config-sample.php文件为wp-config.php
    vi wp-config.php

修改这四项为postgresql的配置参数

define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'postgres');

/** MySQL database password */
define('DB_PASSWORD', 'xxxxxxx');

/** MySQL hostname */
define('DB_HOST', 'localhost:5432');


5. 在浏览器上打开http://192.168.56.1/wordpress/,配置相应的参数就可以使用wordpress

以后可以有自己的博客了

最新文章

  1. Ajax.BeginForm()实现ajax无刷新提交
  2. 解决asp.net动态压缩
  3. [Tools] 使用XP远程登录Win8系统
  4. //sql过滤关键字
  5. 学习笔记——Maven 命令行选项
  6. jquery 整理之一
  7. HDU 2227-Find the nondecreasing subsequences(dp+BIT优化)
  8. S.O.L.I.D
  9. VS2010+Opencv-2.4.9的配置攻略
  10. centos6.5设备mysql5.6
  11. leetcode第29题--Substring with Concatenation of All Words
  12. 各个模块的刷新js
  13. 手把手:使用service principal连接Azure Media Service
  14. openstack IPV6
  15. android 4.x环境搭建
  16. MongoDB的数据模型
  17. 3- 功能2:基于forms组件和ajax实现注册功能
  18. 【Unity笔记】关于UGUI的根节点Canvas
  19. mac下csv乱码解决办法
  20. c++实现对输入数组进行快速排序

热门文章

  1. NOIP 模拟 $16\; \rm God Knows$
  2. 题解 math
  3. 【Paper】智能家居
  4. 2014 12 27 bestcoder 第一题
  5. Go: 复合数据类型struct
  6. QT学习日记篇-02-QT信号和槽
  7. mybaits源码分析--事务管理(八)
  8. idea配置tomcat及中文乱码解决
  9. [考试总结]noip模拟45
  10. web、html概念快速入门