1,224 bytes added, 09:33, 28 November 2014
Web severs
but there is an other simple way to do it running (also, if you need some other web apps, it would be easy more after):
server {
listen 80;
server_name localhost default_server;
root /srv/http/www/public_html;
index index.html index.html index.php;
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
with this config, your phppgadmin will be accessible at http://localhost/phppgadmin directly and you will be able also to add some other web apps easy in the same way
(just have to paste/link them under public_html directory and find it at localhost/your_webapps)
this config make working all php file inside your localhost directly
(also it is a good idea to allow a user http http in the top of this nginx file and make directory srv/http/ under http owner/group)
the "server" serve only if you want to create some other server name designed only for this...
also, make a root inside the location of php is not a simple way to do and make the config file in trouble...
===phpPgAdmin configuration===