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