crocofile
crocofile copied to clipboard
Can't log in
Moved crocofile to a new server and can't login.
Am getting the login box but it does not accept my username/password.
Installed a fresh copy of crocofile on the server and attempted to login with admin/admin but am seeing the same behaviour.
Apache error log shows:
[Wed Jan 15 15:53:00 2014] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Notice: Undefined index: Authorization in /var/www/clients/client18/web24/web/fileshare/inc/HTTPDigest.php on line 88
[Wed Jan 15 15:53:00 2014] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Stack trace:
[Wed Jan 15 15:53:00 2014] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP 1. {main}() /var/www/clients/client18/web24/web/fileshare/index.php:0
[Wed Jan 15 15:53:00 2014] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP 2. HTTPDigest->authenticate() /var/www/clients/client18/web24/web/fileshare/index.php:8
[Wed Jan 15 15:53:00 2014] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP 3. HTTPDigest->getAuthHeader() /var/www/clients/client18/web24/web/fileshare/inc/HTTPDigest.php:126
What version of PHP are you using? Were you using mod_fcgid on the old server?
Same here: initial login (Admin) does not work! (PHP Version 5.5.20)
which PHP Version is the correct one for crocofile?
It has nothing to do with the PHP version. You need to make sure the authorization is passed through to PHP. Either by mod_php directly or via the Apache rewrite rule in .htaccess which sets the http_authorization variable.
Unfortunately I can't login too. I'm using fcgid like the others here. I followed this tutorial: https://support.tigertech.net/php-http-auth but it doesn't work. I added the extra PHP code in line 86 before if (function_exists('apache_request_headers') && ini_get('safe_mode') == false). Could you help please?