Latest interface: 0.3.1
Latest system: 010
ctcitech
User

14 posts

Posted on 1 March 2019 @ 08:01edited 2 March 2019 @ 20:51
This post has been removed due to new information brought to my attention. As stated below, more to come with 12.1
karmantyu
User

169 posts

Posted on 1 March 2019 @ 16:39
Do not upgrade to 12.0 yet if you are sharing files through SAMBA service. Wait for 12.1 if you can wait.
I will update the WEBscript slightly later. Please wait for that too. Using the above modification the script will not work with FreeBSD 11 only for version 12.
ctcitech
User

14 posts

Posted on 1 March 2019 @ 18:13edited 19:17 21s
Why do you suggest to wait for 12.1?
Following this method, Samba4 and all packages are fully operational, as well as the WebGUI.

And that is correct, using the above script modification is only intended for 12.0+ being that the pools array format changed with version 12.0. On version 11, the pools page will work just fine, requiring no modification from the start.
karmantyu
User

169 posts

Posted on 2 March 2019 @ 06:16
Some minor SAMBA quota error is existing in 12.0
https://forums.freebsd.org/threads/samba-quota-errors-logged.68832/
If it's not disturbing you go ahead.
I've modified the WEBUI last year to work with every FreeBSD version already. I did not upload it because I did not think there is somebody reading this page yet. I will make some syntax check for PHP7 and will upload the script later.
ctcitech
User

14 posts

Posted on 2 March 2019 @ 20:50
interesting, thank you for the insight. I will try to take this down.
karmantyu
User

169 posts

Posted on 4 March 2019 @ 15:21edited 5 March 2019 @ 15:45
So I've checked the script and will most likely run on PHP7 too.
To install the whole package: (ssh in your server and be su first!)
# Let's stop the running interface services:
service lighttpd onestop

# get in the ZFSguru directory
cd /usr/local/www/zfsguru/

# fetch the modified webinterface files
fetch https://dl.dropboxusercontent.com/s/mnnv0dvc035o0lb/ZFSguru-0.3.1.SMB4_PHPX.tgz

# extract the fetched files
tar -xzvf ZFSguru-0.3.1.SMB4_PHPX.tgz

# Change owner to default to be sure
chown -R zfsguru-web:zfsguru-web /usr/local/www/zfsguru

# Let's start the webinterface
service lighttpd onestart

In some cases on the DISKS page the identifiers are messed up slightly. Then append the next lines to /boot/loader.conf
# disable id labels
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gpt.enable="1"
kern.geom.label.gptid.enable="0"
kern.geom.label.ufsid.enable="0"
# disable legacy device mappings (ada->ad)
kern.cam.ada.legacy_aliases="0"
Qui
User

66 posts

Posted on 4 March 2019 @ 16:15
still checking in from time to time karmantyu :)thanks!
karmantyu
User

169 posts

Posted on 4 March 2019 @ 16:21
If anybody has time and knowledge please investigate further the error to be seen in /var/log/lighttpd/error.log when choosing a filesystem on the Files menu page.
(mod_fastcgi.c.425) FastCGI-stderr: PHP Notice: Undefined offset: 3 in /usr/local/www/zfsguru/includes/zfs.php on line 522
So there is an error getting zfs filesystem properties to array.
Thanks,
ctcitech
User

14 posts

Posted on 5 March 2019 @ 03:47
On first glance, it seems that:
$prop[$name][$property]['source'] = trim($split[3]);

should be changed to this:

$prop[$name][$property]['source'] = $source;

CS
ctcitech
User

14 posts

Posted on 5 March 2019 @ 03:55
Yes this seems to be the solution

CS
karmantyu
User

169 posts

Posted on 5 March 2019 @ 15:46
Thank You ctcitech,
Updated the package on Dropbox.
Last Page

Valid XHTML 1.1