Latest interface: 0.3.1
Latest system: 010

169 posts

Posted on 3 February 2018 @ 18:50edited 25 February 2018 @ 16:37
If the web interface function is only slightly damaged (#pkg upgrage)it is enough to make STEP 4 and 5!

Step 1. Create a user and group called 'zfsguru-web' with uid 888 and gid 888:

pw groupadd zfsguru-web -g 888
pw useradd zfsguru-web -u 888 -d /nonexistent -s /sbin/nologin

Step 2. Change /usr/local/etc/sudoers.d to allow zfsguru-web access instead of user 'www'.

ee /usr/local/etc/sudoers.d/zfsguru-web

# Grant zfsguru-web user root access without password prompt
%zfsguru-web ALL=(ALL) NOPASSWD: ALL

touch /var/log/lighttpd.error.log
chown zfsguru-web:zfsguru-web /var/log/lighttpd.error.log
mkdir /var/run/lighttpd
touch /var/run/lighttpd/sockets/php-fastcgi-1.socket-0
chown -R zfsguru-web:zfsguru-web /var/run/lighttpd
chown -R zfsguru-web:zfsguru-web /usr/local/www/zfsguru

Step 3. Now, let the webserver Lighttpd run with the new user by modifying /usr/local/etc/lighttpd/lighttpd.conf, and replace the current 'www' user configuration with 'zfsguru-web' like this:

server.username = "zfsguru-web"
server.groupname = "zfsguru-web"

Step 4. Then you might need to change permissions to zfsguru-web for some directories:

chown -R 888:888 /var/spool/lighttpd
chown -R 888:888 /var/log/lighttpd
chown -R 888:888 /var/run/lighttpd

Step 5. Then I updated lighttpd with the new lighttpd.conf:
lighttpd -f /usr/local/etc/lighttpd/lighttpd.conf restart

service lighttpd restart

If the ZFSguru web interface doesn't work, reboot the computer.

65 posts

Posted on 18 February 2018 @ 09:56
once again, thank you!
Last Page

Valid XHTML 1.1