[reproduced] using PostgreSQL to install WordPress

Source: Internet
Author: User
Tags install wordpress

1. Installation of the environment

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

2. Download 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. Unzip and place in the/var/www directory
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. Switch to the/var/www/wordpress directory and copy an wp-config-sample.php file to wp-config.php
VI wp-config.php

Modify these four configuration parameters for 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. Open http://192.168.56.1/wordpress/on the browser, configure the appropriate parameters to use WordPress


You can have your own blog in the future.

[reproduced] using PostgreSQL to install WordPress

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.