Как установить postgresql и phppgadmin с помощью nginx? - PullRequest
0 голосов
/ 18 июня 2019

Мне нужно установить postgresql и phppgadmin с установленным nginx под Ubuntu 16 (AWS). Я установил пакеты:

$ sudo apt-get -y install postgresql postgresql-contrib phppgadmin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
phppgadmin is already the newest version (5.1+ds-1ubuntu1).
postgresql is already the newest version (9.5+173ubuntu0.2).
postgresql-contrib is already the newest version (9.5+173ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

в phpinfo. Я вижу установленные драйверы http://ec2 -18-224-82-207.us-east-2.compute.amazonaws.com/info.php

PostgreSQL driver for PDO   Edin Kadribasic, Ilia Alshanetsky
PostgreSQL  Jouni Ahto, Zeev Suraski, Yasuo Ohgaki, Chris Kings-Lynne

Но запуск phppgadmin в URL выглядит так: http://ec2 -18-224-82-207.us-east-2.compute.amazonaws.com/phppgadmin Я получил ошибку:

404 Not Found
nginx/1.10.3 (Ubuntu)

При поиске решения я обнаружил, что каталог / etc / nginx / sites-available / phppgadmin, но:

$ cd /etc/nginx/sites-available
ubuntu@ip-172-31-34-88:/etc/nginx/sites-available$ ls -la
total 16
drwxr-xr-x 2 root root 4096 Jun 18 05:15 .
drwxr-xr-x 6 root root 4096 Jun 12 15:46 ..
-rw-r--r-- 1 root root 2327 Jun 17 12:02 default
-rw-r--r-- 1 root root 2074 Jun 12 15:49 default.bak

Какие шаги мне нужно предпринять для запуска приложений phppgadmin и laravel 5?

...