Estimated

I would like to know if it is possible to work together, between Nginx with PHP7 and PostgreSQL.
I can't find on the web an instruction to configure PostgreSQL to work in the environment described above.
I already have Nginx running with Php7 and I want to add PostrgreSQL as a database.
Everything in Linux Debian

Thanks in advance