Configure phpmyadmin with varnish correctly (Not working)

January 7, 2014 6k 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- http://postimg.org/image/bh1atlz9n/ 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
7 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) ?

Thanks
Is there anything listening on port 8080? What's the output of
sudo netstat -plutn
?
here's the output- http://postimg.org/image/4g4in0a83/

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

See if http://jesin.tk/installing-phpmyadmin-behind-varnish/ 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/config.inc.php

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

under
/* Authentication type */

*Varnish + PHPMyAdmin error*

I am running Ubuntu 16.04 LTS with

Apache + Nginx + Varnish + VestaCp + Zend Opache

when I installed Varnish on VestaCp, I was unable to login my phpmyadmin

I have edited
nano /etc/phpmyadmin/config.inc.php

and put this line without any port number
$cfg['PmaAbsoluteUri'] = 'http://yoursitename/phpmyadmin/';

under
/* Authentication type */

and accessed phpmyadmin without any port

http://honestfeature.com/phpmyadmin

All is working perfect!

Have another answer? Share your knowledge.