PeeHaa / OpCacheGUI

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

Login with credentials error #73

Closed mtx-z closed 6 years ago

mtx-z commented 8 years ago

Hi ! I just installed this pretty cool GUI.

My only problem is with the login, wich seems broken.

1/ Clearing all user/password -> site still ask for login 2/ creation a password with a php script using password_hash("mypass", PASSWORD_DEFAULT); and setting this value, the login always fail 3/ only way to access is to add my IP into the white list

Anyone succed to implement the login ? (I'm on QUERY_STRING mode)

Thx !!

hanxue commented 8 years ago

Clearing the user/password works for me. I got tripped when I created init.production.php, and realize by default init.example.php is used. Either change the settings in init.example.php or change init.deployment.php to require your updated init file.

Theolodewijk commented 8 years ago

same issue

delphiprogramming commented 7 years ago

I have same problem, login failed

password : test hash : $2y$10$HS.YjJBkwvT.GPPI5FKpn.KxDAhe/NndyHxR/yJbVCSkITJJnE/UO I created hash and verify password using https://php-password-hash-online-tool.herokuapp.com/password_verify

pdanysz commented 7 years ago

I believe that problem can occur if whitelist is wrong set. I use this to allow login to from any IP:

$login = [ 'username' => 'opuser', 'password' => 'oppassword', 'whitelist' => ['*'] ];

never615 commented 7 years ago

I have the same problem and solve it through the following methods.

  1. nginx

    server {
    listen      80;
    server_name opcache.xxx.com;
    root       xxx;
    
    index index.php index.html index.htm;
    
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    
    location ~* \.php$ {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    }
    }
  2. systemctl restart php-fpm : reset opcache
PeeHaa commented 6 years ago

I went through the login logic again and fixed some issues.

If people still have a problem feel free to open a nice issue and I will have another look.