Hello everyone,
Why is it that when i customize a php page of the webgui and save it, it works well till i restart my nas. Simply restarting nas reverts all the changes back. How do i keep the changes?
Thank you for your help.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Nas4free custom webgui
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: Nas4free custom webgui
you have the embedded install.
all system files are in a ram disk which doesn't get saved to the file system.
so upon a restart all changes are lost.
two possible solutions.
do a full install
or
create a postinit script
http://wiki.nas4free.org/doku.php?id=do ... nd_scripts
that copies the files at every boot.
all system files are in a ram disk which doesn't get saved to the file system.
so upon a restart all changes are lost.
two possible solutions.
do a full install
or
create a postinit script
http://wiki.nas4free.org/doku.php?id=do ... nd_scripts
that copies the files at every boot.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.
-
chachi420
- Starter

- Posts: 55
- Joined: 26 May 2014 22:35
- Status: Offline
Re: Nas4free custom webgui
Hello b0ssman,b0ssman wrote:you have the embedded install.
all system files are in a ram disk which doesn't get saved to the file system.
so upon a restart all changes are lost.
two possible solutions.
do a full install
or
create a postinit script
http://wiki.nas4free.org/doku.php?id=do ... nd_scripts
that copies the files at every boot.
thank you for your reply. I have read about postinit scripts before but i have no idea how to write one. For example, let's say that i have modified the file "status_disk.php" with a code that shows temperature of disks that's above 30 in red color. How do i use that postinit scripts to make sure that file always has the code when i restart the nas?
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: Nas4free custom webgui
Hi chachi420,
you can also use crest's extended gui, this shows the temperatures already in different and much more:
viewtopic.php?f=71&t=6405
you can also use crest's extended gui, this shows the temperatures already in different and much more:
viewtopic.php?f=71&t=6405
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
chachi420
- Starter

- Posts: 55
- Joined: 26 May 2014 22:35
- Status: Offline
Re: Nas4free custom webgui
Hey crowi,crowi wrote:Hi chachi420,
you can also use crest's extended gui, this shows the temperatures already in different and much more:
viewtopic.php?f=71&t=6405
Yes i have seen this wonderful extension and was thinking about implementing it as soon as i can but till then i wanted to keep learning all these different things so is there a way you can teach me how to create some sort of extension like that to be able to make a fix page like this?
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: Nas4free custom webgui
Sorry, no, I am not good at php, you need to ask crest or one of the developersis there a way you can teach me how to create some sort of extension like that to be able to make a fix page like this
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: Nas4free custom webgui
chachi420 wrote: Hello b0ssman,
thank you for your reply. I have read about postinit scripts before but i have no idea how to write one. For example, let's say that i have modified the file "status_disk.php" with a code that shows temperature of disks that's above 30 in red color. How do i use that postinit scripts to make sure that file always has the code when i restart the nas?
just execute the command that copies your file over the old one
cp /mnt/<disk>/file.php /<locaiton of the other file/file.php
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.
-
chachi420
- Starter

- Posts: 55
- Joined: 26 May 2014 22:35
- Status: Offline
Re: Nas4free custom webgui
Oh alright that makes sense. Now the question is where exactly are these php files located? Because i use the file editor on the webgui to access those webgui php files but i actually dont know their exact path. Also, just to make sure that i understand what you just said, i make a copy of the file that i just edited on my hdd (because a file on the hdd will obv never change with reboot) and have that file be copied to the location of the actual webgui file and replace it. Correct?b0ssman wrote:chachi420 wrote: Hello b0ssman,
thank you for your reply. I have read about postinit scripts before but i have no idea how to write one. For example, let's say that i have modified the file "status_disk.php" with a code that shows temperature of disks that's above 30 in red color. How do i use that postinit scripts to make sure that file always has the code when i restart the nas?
just execute the command that copies your file over the old one
cp /mnt/<disk>/file.php /<locaiton of the other file/file.php
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: Nas4free custom webgui
just ssh into the machine and search for the file using the find command.
and yes to your question
and yes to your question
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.
-
chachi420
- Starter

- Posts: 55
- Joined: 26 May 2014 22:35
- Status: Offline
Re: Nas4free custom webgui
Sounds good. Ill give it a shot. Just installed the extension btw. It's dope!b0ssman wrote:just ssh into the machine and search for the file using the find command.
and yes to your question