Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run pgpoolAdmin through nginx - it seems to be working properly, at least initially.

I've gone through the initial set-up, which works fine, but now after logging in every link takes me straight back to the login page. It also shows japanese text instead of english, despite picking english in the installation.

It seems to me just as if it was unable to save any user data, session information etc.

I have javascript/cookies enabled, so it's not that. The ownership of the folder is nginx, and so too is pgmgt.conf.php, so it shouldn't be a problem with permissions. One potential issue is that I can't seem to see any confirmation that php postgresql support is enabled in the php info screen, despite the correct package installed and in the config line.

Any ideas as to what's happening here?

The nginx rules are pretty standard:

server {

    # pg-pool admin

   listen       997;
   server_name  localhost;
   root      /opt/pgpooladmin;
   index     index.php;

   location ~ .php$ {
         fastcgi_pass_header Set-Cookie;
         fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
         fastcgi_param  PATH_INFO $fastcgi_script_name;
         fastcgi_index  index.php;
         include        fastcgi_params;

share|improve this question

I ran into this problem today. Looking at nginx error logs, I found that PHP was getting permission denied when trying to write sessions to /var/lib/php5. The solution was to grant write access to this folder for the nginx user (which I had changed from www-data).

share|improve this answer
up vote 0 down vote accepted

I've managed to get it running in Apache - annoying that I can't run it through nginx though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.