User Tools

Site Tools


Writing /home/user/smartcj.com/wiki/data/cache/3/37eae6e090ec098e8a0d8d71c30346f6.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/user/smartcj.com/wiki/data/cache/3/37eae6e090ec098e8a0d8d71c30346f6.metadata failed
en:password
Translations of this page:



Writing /home/user/smartcj.com/wiki/data/cache/3/37eae6e090ec098e8a0d8d71c30346f6.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/user/smartcj.com/wiki/data/cache/3/37eae6e090ec098e8a0d8d71c30346f6.xhtml failed

Password

Protects your admin area.

Basically your scj/admin folder is protected with so-called Apache authorization. But you can switch on “multiaccess”. Thus you can create a list of users with different access rights for example access to rotation menu only.

Check menu Settings - Password.

php-fpm, castcgi & multiaccess problem

At present time there's an issue if you use named modules and multiaccess

By default apaches passes PHP_AUTH_USER variable while those modules ignore it

Solution

1. add to .htaccess

RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]

2. add to includes/config.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);
}  
en/password.txt · Last modified: by 127.0.0.1