View Single Post
Old 06-06-2016, 09:49 AM   #1271
Azazael
Junior Member
Azazael began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2016
Device: dibuksaga
Quote:
Originally Posted by mariosipad View Post
What exactly did you change in .htaccess in the cops directory?
How and where (path) did you create .htpasswd and with what rights?


If it does not work then you could try a setting in config_local.php:
Code:
    /*
     * Enable PHP password protection (You can use if htpasswd is not possible for you)
     * If possible prefer htpasswd !
     * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
     * NULL : Disable PHP password protection (You can still use htpasswd)
     */

     $config['cops_basic_authentication'] = NULL;
change last line to (for example):
Code:
    $config['cops_basic_authentication'] = array("username" => "Azazael", "password" => "s3cr3t");
Thank you for your response

I used this tool http://www.htaccesstools.com/htpasswd-generator/
File path : /i-data/38e0c4cc/.system/zy-pkgs/gui/CalibreCOPS/.htpasswd
File permissions : -rwxr-xr-x 1 admin everyone
No changes in .htaccess I thought config file.

Worked if I will add this code: $config['cops_basic_authentication'] = array("username" => "Azazael", "password" => "s3cr3t");

If I will add this code: $config['cops_basic_authentication'] = NULL; not worked, only blank page.

Last edited by Azazael; 06-06-2016 at 10:42 AM.
Azazael is offline   Reply With Quote