How to serve phpmyadmin over https with nginx
Finally it's working perfectly fine.
For those who are also facing this type of problem the trick is to just set variable in config.inc.php
$cfg['PmaAbsoluteUri']
to the url that your user should see
for example $cfg['PmaAbsoluteUri'] = https://example.com/myphpadminroute
PHPmyAdmin 4.8.0 - apache2 behind nginx proxy - session_cookie error on login
I was able to reproduce this issue.
For this exact configuration this issue is solved with:proxy_cookie_path /phpmyadmin/ /;
in one of the location blocks.
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cookie_path
using : nginx/1.14.0 (Ubuntu)
PHP 7.2 MySQL Google App Engine after login cookie issue
I didn't realize there was an ability to see the GAE php logs, so that I could see what was failing.
I finally managed to get some basic sql working and then tested the table creation that ezxss was trying to perform, and it turned out it wasn't working and wasn't throwing an error.
Though it would throw an error if I pasted into cloud shell.... complaining about ENGINE=MyISAM
so this code
$this->database->query('CREATE TABLE IF NOT EXISTS `settings` (`id` int(11) NOT NULL AUTO_INCREMENT,`setting` varchar(500) NOT NULL,`value` text NOT NULL,PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;');
$this->database->query('CREATE TABLE IF NOT EXISTS `reports` (`id` int(11) NOT NULL AUTO_INCREMENT,`shareid` VARCHAR(50) NOT NULL,`cookies` text,`dom` longtext,`origin` varchar(500) DEFAULT NULL,`referer` varchar(500) DEFAULT NULL,`uri` varchar(500) DEFAULT NULL,`user-agent` varchar(500) DEFAULT NULL,`ip` varchar(50) DEFAULT NULL,`time` int(11) DEFAULT NULL,`archive` int(11) DEFAULT 0,`screenshot` LONGTEXT NULL DEFAULT NULL,`localstorage` LONGTEXT NULL DEFAULT NULL, `sessionstorage` LONGTEXT NULL DEFAULT NULL,PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;');
got changed to $this->database->query('CREATE TABLE IF NOT EXISTS `settings` (`id` int(11) NOT NULL AUTO_INCREMENT,`setting` varchar(500) NOT NULL,`value` text NOT NULL,PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;');
$this->database->query('CREATE TABLE IF NOT EXISTS `reports` (`id` int(11) NOT NULL AUTO_INCREMENT,`shareid` VARCHAR(50) NOT NULL,`cookies` text,`dom` longtext,`origin` varchar(500) DEFAULT NULL,`referer` varchar(500) DEFAULT NULL,`uri` varchar(500) DEFAULT NULL,`user-agent` varchar(500) DEFAULT NULL,`ip` varchar(50) DEFAULT NULL,`time` int(11) DEFAULT NULL,`archive` int(11) DEFAULT 0,`screenshot` LONGTEXT NULL DEFAULT NULL,`localstorage` LONGTEXT NULL DEFAULT NULL, `sessionstorage` LONGTEXT NULL DEFAULT NULL,PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;');
Related Topics
Check If Two PHP Datetime Objects Are Set to the Same Date ( Ignoring Time )
PHP Require File from Top Directory
Convert Windows Timestamp to Date Using PHP on a Linux Box
How to Access Magento Customer's Session from Outside Magento
How to Upload Files in Web Workers Without Using Formdata
Calculating Working Hours Between Two Dates
How to Rename a Filename After Uploading with PHP
Codeigniter Compatibility with PHP Version
PHP Sum Variable in While Loop
How Can Clear Screen in PHP Cli (Like Cls Command)
(When) Should I Use Type Hinting in PHP
Php: How to Set Current Working Directory to Be Same as Directory Executing the Script
Uploading Image from Android to PHP Server
How to Call Curl_Setopt with Curlopt_Httpheader Multiple Times to Set Multiple Headers