User Tools

Site Tools


Translations of this page:



password

Password & Multiaccess

Password for admin access.

By default, the admin panel uses Apache's .htaccess basic authentication. You can enable “multiaccess” to restrict admin functionality per user. For example, create an “admin” user with full access and a “rotator” user with access only to rotation features.

Switch authentication modes in Settings - Password.

Default credentials: admin / admin

php-fpm, fastcgi & multiaccess problem

These PHP execution modules don't pass PHP_AUTH_USER variables to the script.

Solution:

1. Add to .htaccess:

``` RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last] ``` 2. In includes/config.php, add:

```php if (isset($_SERVER['HTTP_AUTHORIZATION']) && preg_match('/Basic\s+(.*)$/i', $_SERVER['HTTP_AUTHORIZATION'], $matches)) {

  list($name, $password) = explode(':', base64_decode($matches[1]));
  $_SERVER['PHP_AUTH_USER'] = strip_tags($name);
  $_SERVER['PHP_AUTH_PW'] = strip_tags($password);

} ```

password.txt · Last modified: 2026/03/21 10:11 by 127.0.0.1