Configure phpmyadmin with varnish correctly (Not working)

January 7, 2014 5.4k views
Hello all, I have ubuntu 12.04 + apc + varnish Installing phpmyadmin before varnish works well, but when I install varnish this error comes up- I had that 8080 redirect problem but solved it by adding $cfg['PmaAbsoluteUri'] = 'http://x.x.x.x/phpmyadmin'; in pma config I have tried clearing browser cookies, in both firefox and IE. My current session save path is /var/lib/php5 which seems to be writable since i can see some session files inside, but they are getting created with permissions - 0600, Putting wrong username in x.x.x.x/phpmyadmin/index.php also produces same error Please help Thanks
6 Answers
Try browsing to port :8080 directly for accessing phpmyadmin.
Hi , thanks for the reply,
8080 says unable to connect,
Do i need to add or change something in nginx default configuration file (server block) ?

Is there anything listening on port 8080? What's the output of
sudo netstat -plutn
here's the output-

seems like nginx is listening on 8080?
It is, but it's listening on the loopback interface so you can't access it remotely.

See if helps.
The above link is not working for me. but, 8080 works for me
I am using vestaCP, Nginx, Varnish

I have edited
vi /etc/phpmyadmin/

and put this line
$cfg['PmaAbsoluteUri'] = 'http://yoursitename:8080/phpmyadmin/';

/* Authentication type */

Have another answer? Share your knowledge.