Use PostgreSQL under Ubuntu and install postfixAdmin2.92 version of Nginx.

Source: Internet
Author: User

This article installs the PostfixAdmin2.92 version of Ubuntu14.04 with PostgreSQL and Nginx.

<! –more–>

Packages that need to be installed

Memory is a little vague, probably listed:

POSTFIX,POSTGRESQL,POSTFIX-PGSQL,PHP5-PGSQL,NGINX,PHP5-FPM, these packages can be installed through Ubuntu package management.

Preparatory work

You need to configure Nginx support PHP, see additional text.

You need to establish the PostgreSQL database and database users used by POSTFIXADMI and configure the ability to log on through the network.

Database users can execute in Psql:

create user postfix;

You can create a database with commands:

createdb postfixdb -O postfix
Install package download

The official website can find the download link because it is using the Nginx in Ubuntu, after downloading the compressed package into/usr/share/nginx/html, renamed to Postfixadmin. and modify the owner to Www-data:

sudo chown -R www-data postfixadmin
Initialize configuration initialization configuration file modification

Before you run setup.php, you need to modify config.ini.php. The diff result for this file modification (modified in front:

< $CONF[‘configured‘] = false;---> $CONF[‘configured‘] = true;30c30< $CONF[‘setup_password‘] = ‘changeme‘;---> $CONF[‘setup_password‘] = ‘290c3045f1e273b6725835242ea7cf3d:87937c8fd844a8d4eac9b5cea48393224379663a‘;34c34< $CONF[‘default_language‘] = ‘en‘;---> $CONF[‘default_language‘] = ‘cn‘;83c83< $CONF[‘database_type‘] = ‘mysqli‘;---> $CONF[‘database_type‘] = ‘pgsql‘;86,87c86,87< $CONF[‘database_password‘] = ‘postfixadmin‘;< $CONF[‘database_name‘] = ‘postfix‘;---> $CONF[‘database_password‘] = ‘yourpassword‘;> $CONF[‘database_name‘] = ‘postfixdb‘;

Setup_password one is related to the subsequent settings, see below, database_type How to set the configuration file in the description, and configured need to be true to initialize.

Initialize configuration

Open http://127.0.0.1/postfixadmin/setup.php/in the browser to begin the initialization configuration. Since the start of the configuration is not, here to borrow other diagrams on the internet to illustrate, the main problem in the setting of the administrator user, the previous environmental inspection problem is not big. When setting up an administrator user, enter the Setup_password error that is configured in config.ini.php, similar to the following:

if you want to use the password you entered as setup password, edit config.inc.php and set $CONF[‘setup_password‘] = ‘1a05f571012e9f14c0f80f764d516f80:ec41add25de301101bac12649f929bbcbea8575e‘;

Update the display to config.ini.php, then configure it to complete the configuration of the administrator user:

Use

Open http://127.0.0.1/postfixadmin/, enter the login page, log in with the previously established administrator user will enter the management interface:

Reference

Questions about password errors when setting up an administrator:

Http://www.tuicool.com/articles/yMfq22

A more old version of the configuration, for reference some ideas:

Http://blog.sina.com.cn/s/blog_57cf8eea0100aogd.html

Original link Address: http://pangyi.github.io/blog/20010101/ubuntuxia-shi-yong-postgresql-dot-he-nginxan-zhuang-postfixadmin2-dot-92ban/
Written by pangyi?posted at Http://pangyi.github.io

Use PostgreSQL under Ubuntu and install postfixAdmin2.92 version of Nginx.

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.