[转载]使用postgresql安装wordpress
2015-04-30 21:19
381 查看
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
以后可以有自己的博客了
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
以后可以有自己的博客了
相关文章推荐
- PostgreSQL安装和简单使用(转载:http://www.linuxsir.org/main/node/275)
- [转载]centos6.3安装启动使用PostgreSQL 9.2
- centos6.3安装启动使用PostgreSQL 9.2
- linux 安装sysstat使用iostat、mpstat、sar、sa(转载)
- Mac下PostgreSQL的安装与使用
- iOS开发 企业证书下载生成安装 使用 以下内容为转载
- 在PostgreSQL上安装并使用扩展模块的教程
- Coding.net代码托管空间申请与使用-安装并运行WordPress博客
- 【转载】CocoaPods安装和使用教程
- 汇编语言的集成编译环境RadSAM的安装及使用(转载)
- postgreSQL在ubuntu环境下的安装使用
- ubuntu安装postgresql和使用方法
- Mac 下 PostgreSQL 的安装与使用
- Coding.net代码托管空间申请与使用-安装并运行WordPress博客
- 【转载】使用yum框架流畅安装依赖包
- CentOS 5.5使用yum来安装LAMP(php运行环境)【转载】
- Mac 下 PostgreSQL 的安装与使用
- xhprof安装&&使用[转载]
- CentOS 安装postgresql9.2与Window7 pgAdminIII的使用
- Mac 下 PostgreSQL 的安装与使用