PeeHaa / OpCacheGUI

GUI for PHP's OpCache
1.46k stars 170 forks source link

Will not login on php-fpm7.0 #99

Closed inetbiz closed 1 year ago

inetbiz commented 6 years ago

Nothing in my error logs for php. Login will not let me in even with a * wildcard for access. https://opcache.3arches.com/?



namespace OpCacheGUI;

use OpCacheGUI\Network\Router;

/**
 * Login credentials
 *
 * The password is a password compatible with PHP's password hashing functions (password_hash())
 *
 * Only addresses on the whitelist are allowed to log in
 * The whitelist can contain a list of IP addresses or ranges in one of the following formats:
 *
 * * allows any IP address to log in (effectively disabling the whitelist and allowing access from any IP)
 * localhost or 127.0.0.1 allows only log ins from the machine on which the application runs
 * 10.0.0.5 allows a single address access
 * 10.0.0.* allows any log in from the range starting from 10.0.0.0 to 10.0.0.255. All octets but the first can be a wildcard
 * 10.0.0.1-10.0.0.24 defines a range of IP addresses which are allowed to log in (including the IP addresses defining the range)
 * 10.0.0.10/24 defines a range of IP addresses in the CIDR format
 *
 * Multiple addresses or ranges can be defined
 */
return [
    'username'        => 'xxx',
    'password'        => 'xxx',
    'whitelist'       => [
        '*',
    ],
    'language'        => 'en',
    'timezone'        => 'America/New_York',
    'error_reporting' => E_ALL,
    'display_errors'  => 'Off',
    'log_errors'      => 'On',
    'uri_scheme'      => Router::URL_REWRITE
];
PeeHaa commented 6 years ago

Can you check why it fails by dumping something before here.

And it it indeed fails there can you add your ip from which you try to connect (or localhost of it's the same machine) to the whitelist and check again if it works?

I have a suspicion what may be wrong, but I am not 100% sure yet. If you can report back whether it works after the change or not that would be great.

inetbiz commented 6 years ago

@PeeHaa if I have this in whitelist:

'whitelist'       => [
        'localhost',
    '173.130.170.90'
    ],
PeeHaa commented 6 years ago

Does it work with that whitelist? Did you add the dump to check whether it's the firewall that fails or the actual login?

inetbiz commented 6 years ago

@PeeHaa var_dump() or dump a var before that check? It did not work with that whitelist. My environment is php-fpm7.0

ekinhbayar commented 1 year ago

Closing due to inactivity for years.