Support #608
Updated by Daniel Curtis over 10 years ago
This is a guide for installing phppgadmin on Debian 8 with nginx.
h2. Prepare the Environment
* Make sure the system is up to date:
<pre>
apt-get update && apt-get upgrade -y
</pre>
h2. Install phppgadmin
* Install phppgadmin
<pre>
apt-get install php5-fpm php5-pgsql phppgadmin
</pre>
* Disable apache2
<pre>
update-rc.d -f apache2 remove
service apache2 stop
</pre>
* Install nginx
<pre>
apt-get install nginx
</pre>
* The installation will now complete. Now create a file to enable phppgadmin:
<pre>
nano /etc/nginx/sites-enabled/phppgadmin
</pre>
#* And add the following:
<pre>
server {
listen 8080;
server_name localhost;
location / {
root /usr/share/phppgadmin;
index index.php index.html index.htm index.php; index.htm;
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?url=$1 last;
break;
}
location ~ \.php$ .php$ {
root /usr/share/phppgadmin; try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/phppgadmin/$fastcgi_script_name;
include fastcgi_params; /etc/nginx/fastcgi_params;
}
}
</pre>
h2. Resources
* https://wiki.debian.org/PhpPgAdmin