Your message dated Wed, 9 Mar 2016 15:51:14 +0100
with message-id <[email protected]>
and subject line Re: Bug#791466: phpmyadmin redirects to '/' after logging in
(php5-fcgi)
has caused the Debian Bug report #791466,
regarding phpmyadmin redirects to '/' after logging in (php5-fcgi)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
791466: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791466
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: phpmyadmin
Version: 4:4.2.12-2
Severity: normal
Dear Maintainer,
I have phpmyadmin installed on a local computer. With the apache php4 module
When I login to 'https://linux486/phpmyadmin/' I'm redirected to
https://linux486/phpmyadmin/index.php?token=ccd787ee7abc2f5ad7260f3193239037#PMAURL-0:index.php?db=&table=&server=1&target=&token=ccd787ee7abc2f5ad7260f3193239037
which has been for years.
Same with a production server I maintain.
But, we moved to php5-fpm recently (Apache/2.4.10 (Debian)
mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2c mod_perl/2.0.9dev
Perl/v5.20.2) and it doesn't work
that way anymore.
When I login to 'http://www.ts-export.com/phpmyadmin/' I get redirected to
http://www.ts-export.com/?target=php5-fcgi&token=0a771f7ad9288b431ee09ae972d2f5ca
(it's another virtual website completely independant)
where as I should get redirected to
'http://www.ts-export.com/phpmyadmin/?target=php5-fcgi&token=0a771f7ad9288b431ee09ae972d2f5ca'
instead!
See the pattern?
I need to enter the '/phpmyadmin'/ part myself. I then I usually get asked to
relogin.
When it's successful (not always), the final URL is
http://www.ts-export.com/phpmyadmin/?target=php5-fcgi&token=0a771f7ad9288b431ee09ae972d2f5ca#PMAURL-0:php5-fcgi?db=&table=&server=1&target=php5-fcgi&token=0a771f7ad9288b431ee09ae972d2f5ca
That is all.
Thanks for your assistance.
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (990, 'stable-updates'), (500, 'stable'), (100, 'oldstable'),
(90, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages phpmyadmin depends on:
ii dbconfig-common 1.8.47+nmu3
ii debconf [debconf-2.0] 1.5.56
ii libapache2-mod-php5 5.6.9+dfsg-0+deb8u1
ii libjs-sphinxdoc 1.2.3+dfsg-1
ii perl 5.20.2-3+deb8u1
ii php-gettext 1.0.11-1
ii php5 5.6.9+dfsg-0+deb8u1
ii php5-cgi 5.6.9+dfsg-0+deb8u1
ii php5-fpm 5.6.9+dfsg-0+deb8u1
ii php5-json 1.3.6-1
ii php5-mcrypt 5.6.9+dfsg-0+deb8u1
ii php5-mysqlnd 5.6.9+dfsg-0+deb8u1
ii ucf 3.0030
Versions of packages phpmyadmin recommends:
ii apache2 [httpd] 2.4.10-10
ii apache2-mpm-prefork [httpd] 2.4.10-10
ii apache2-mpm-worker [httpd] 2.4.10-10
ii mariadb-client-10.0 [virtual-mysql-client] 10.0.16-1
ii nginx-full [httpd] 1.9.2-1
ii php-tcpdf 6.0.093+dfsg-1
ii php5-gd 5.6.9+dfsg-0+deb8u1
Versions of packages phpmyadmin suggests:
ii elinks [www-browser] 0.12~pre6-5+b2
ii lynx-cur [www-browser] 2.8.9dev1-2+b1
ii mariadb-server-10.0 [virtual-mysql-server] 10.0.16-1
ii w3m [www-browser] 0.5.3-19
-- Configuration Files:
/etc/phpmyadmin/apache.conf changed:
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
<FilesMatch ".+\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
#php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
#php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir
/usr/share/php:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/tmp
php_value session.gc_maxlifetime 604800
</IfModule>
<IfModule mod_authz_core.c>
<IfModule mod_authn_file.c>
AuthUserFile /usr/share/phpmyadmin/.htpasswd
AuthName "Authentication Required"
AuthType Basic
</IfModule>
Require valid-user
</IfModule>
RewriteEngine on
# BEGIN block access for empty user agents - 403 error
RewriteCond %{HTTP_USER_AGENT} ^Jorgee$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule ^(.*)$ - [F,L]
# END block access for empty user agents
</Directory>
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authz_core.c>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</IfModule>
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Require all denied
</Directory>
/usr/share/phpmyadmin/.user.ini file:
date.timezone = "America/Phoenix"
date.default_longitude = -111.357422
date.default_latitude = 32.523658
magic_quotes_gpc = Off
track_vars = On
register_globals = Off
allow_url_fopen = Off
include_path = .
upload_tmp_dir = /tmp
open_basedir =
/usr/share/php:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/tmp
session.gc_maxlifetime = 604800
root@NC-PH-0657-10:/etc/nginx#
/etc/phpmyadmin/config.inc.php changed:
<?php
/**
* Debian local configuration file
*
* This file overrides the settings made by phpMyAdmin interactive setup
* utility.
*
* For example configuration see
* /usr/share/doc/phpmyadmin/examples/config.sample.inc.php
* or
* /usr/share/doc/phpmyadmin/examples/config.manyhosts.inc.php
*
* NOTE: do not add security sensitive data to this file (like passwords)
* unless you really know what you're doing. If you do, any user that can
* run PHP or CGI on your webserver will be able to read them. If you still
* want to do this, make sure to properly secure the access to this file
* (also on the filesystem level).
*/
if (!function_exists('check_file_access')) {
function check_file_access($path)
{
if (is_readable($path)) {
return true;
} else {
error_log(
'phpmyadmin: Failed to load ' . $path
. ' Check group www-data has read access and open_basedir
restrictions.'
);
return false;
}
}
}
// Load secret generated on postinst
if (check_file_access('/var/lib/phpmyadmin/blowfish_secret.inc.php')) {
require('/var/lib/phpmyadmin/blowfish_secret.inc.php');
}
// Load autoconf local config
if (check_file_access('/var/lib/phpmyadmin/config.inc.php')) {
require('/var/lib/phpmyadmin/config.inc.php');
}
/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
$cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
/**
* Read configuration from dbconfig-common
* You can regenerate it using: dpkg-reconfigure -plow phpmyadmin
*/
if (check_file_access('/etc/phpmyadmin/config-db.php')) {
require('/etc/phpmyadmin/config-db.php');
}
/* Configure according to dbconfig-common if enabled */
if (!empty($dbname)) {
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
if (empty($dbserver)) $dbserver = 'localhost';
$cfg['Servers'][$i]['host'] = $dbserver;
if (!empty($dbport) || $dbserver != 'localhost') {
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['port'] = $dbport;
}
//$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysqli';
/* Optional: User for advanced features */
//$cfg['Servers'][$i]['controluser'] = $dbuser;
//$cfg['Servers'][$i]['controlpass'] = $dbpass;
/* Optional: Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = $dbname;
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
/* Uncomment the following to enable logging in to passwordless accounts,
* after taking note of the associated security risks. */
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
/* Advance to next server for rest of config */
$i++;
}
/* Authentication type */
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
//$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
//$cfg['Servers'][$i]['extension'] = 'mysql';
/* Optional: User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'xxxxxxxxxxxx';
// $cfg['Servers'][$i]['controlpass'] = 'xxxxxxxxx';
/* Storage database and tables */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
// $cfg['Servers'][$i]['history'] = 'pma__history';
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
// $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
// $cfg['Servers'][$i]['users'] = 'pma__users';
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
/* Uncomment the following to enable logging in to passwordless accounts,
* after taking note of the associated security risks. */
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['LoginCookieValidity'] = 3600 * 9; // 9 hours
/* Support additional configurations */
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename)
{
include($filename);
}
-- debconf information:
* phpmyadmin/db/app-user: phpmyadmin
phpmyadmin/remote/host:
phpmyadmin/dbconfig-upgrade: false
phpmyadmin/remote/port:
phpmyadmin/database-type: mysql
phpmyadmin/missing-db-package-error: abort
* phpmyadmin/reconfigure-webserver: apache2
phpmyadmin/setup-username: admin
* phpmyadmin/mysql/method: unix socket
phpmyadmin/upgrade-error: abort
phpmyadmin/internal/reconfiguring: false
phpmyadmin/install-error: abort
phpmyadmin/upgrade-backup: true
phpmyadmin/purge: false
* phpmyadmin/db/dbname: phpmyadmin
phpmyadmin/dbconfig-install: true
phpmyadmin/internal/skip-preseed: false
phpmyadmin/passwords-do-not-match:
phpmyadmin/remove-error: abort
phpmyadmin/remote/newhost:
phpmyadmin/dbconfig-reinstall: false
phpmyadmin/dbconfig-remove:
* phpmyadmin/mysql/admin-user: root
--- End Message ---
--- Begin Message ---
Hi
Dne 6.11.2015 v 01:56 [email protected] napsal(a):
> Hi Mihcal,
>
> It's a 4 months old issue. It's working as expected now. Probably
> since we've switched from apache to nginx.
Okay closing as there is no other report on this and I believe it was
wrong fcgi setup within Apache.
--
Michal Čihař | http://cihar.com/ | https://weblate.org/
signature.asc
Description: OpenPGP digital signature
--- End Message ---