January 16, 2011 11:28AM
Recently I've been trying to set up a web server using Nginx (I normally use Apache). However I've ran into a problem trying to set phpMyAdmin up on an alias. The alias correctly takes you too the phpMyAdmin login screen, however when you enter valid credentials and hit go you end up back on the login screen with no errors.

Sounded like a cookie or session problem to me... but if I symlink the phpMyAdmin directory and try logging in through the symlinked version it works fine! Both the symlink and the alias one set the same number of cookies and both set seem to set the cookies for the correct domain and path.

My Nginx config for the php alias is as follows (which seems to be correct based on the googling I've done on the problem):

[code]
location ~ ^/phpmyadmin/(.*\.php)$ {
alias /usr/share/phpMyAdmin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
[/code]

I'm running Nginx 0.8.53
PHP 5.3.3
MySQL 5.1.47
phpMyAdmin 3.3.9 - self install
And php-mcrypt is installed.

Anyone have any ideas about how to fix it?
Subject Author Posted

Alias causing phpMyAdmin login endless loop

stickaforkinme January 16, 2011 11:28AM

Re: Alias causing phpMyAdmin login endless loop

Amanager February 18, 2011 04:06AM

Re: Alias causing phpMyAdmin login endless loop

stickaforkinme February 26, 2011 04:14PM

Re: Alias causing phpMyAdmin login endless loop

acjohnson March 07, 2011 08:37PM

Re: Alias causing phpMyAdmin login endless loop

stickaforkinme March 08, 2011 05:37PM

Re: Alias causing phpMyAdmin login endless loop

Dayo February 18, 2011 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready