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 9.1.0.1 (306) php.ini help
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Nas4Free 9.1.0.1 (306) embedded log file and php queries
I have installaed N4F 9.1.0.1 (306) x64 embedded on 8gb sandisk cruzier blade USB stick. I use Biostar GF8100 Nvidia MCP 77 chipset motherboard with 2GB DDR2 Ram 2TB Wd green for storage and AMD sempron 145 (2.8ghz) processor
Firstly I was amazed with the speed at which N4F boots with USB stick from power on to console it takes 140 seconds only
Queries
1) Since logging is very important to me and embedded installs loose log files on reboot I directed the log files to /mnt on my WD 2TB
I have set standby time of HDD to 5 mins, Power management to level 1 --spindown, I have dynamicdns which updates every 15 minutes..
In this case would i achieve proper HDD power management? ( as the log is written to the HDD every 15 minutes)
Can I have my logs stored on any other part of the same USB stick as it is 8GB in size?
what is the harm in having frequent write cycles to USB? ( any effect with respect to life/performance?).
I have set my var size to 512mb, I have installed a php file manager called "file thingie..which is free and very popular..it enables web based UPLOADS, DOWNLOADS, DIR CREATION/DELETE..as it uses PHP the UPLOAD file size limit is set by the PHP.ini file which in the case of N4F is 256 mb, If I want to change it to 512MB how can i achieve it? ( because changes to php.ini are lost on reboot)..could you guide me to put an entry in rc.conf to achieve file size 512mb in php.ini
Finally
on a 2GB ram installation with AMD sempron 145 (2.8 ghz CPU) the performance is very good but the RAM reported in status is only 756mb Where does the other ram go? (what is the breakup of RamDISK /var etc etc)
Thank you
cirkit
Firstly I was amazed with the speed at which N4F boots with USB stick from power on to console it takes 140 seconds only
Queries
1) Since logging is very important to me and embedded installs loose log files on reboot I directed the log files to /mnt on my WD 2TB
I have set standby time of HDD to 5 mins, Power management to level 1 --spindown, I have dynamicdns which updates every 15 minutes..
In this case would i achieve proper HDD power management? ( as the log is written to the HDD every 15 minutes)
Can I have my logs stored on any other part of the same USB stick as it is 8GB in size?
what is the harm in having frequent write cycles to USB? ( any effect with respect to life/performance?).
I have set my var size to 512mb, I have installed a php file manager called "file thingie..which is free and very popular..it enables web based UPLOADS, DOWNLOADS, DIR CREATION/DELETE..as it uses PHP the UPLOAD file size limit is set by the PHP.ini file which in the case of N4F is 256 mb, If I want to change it to 512MB how can i achieve it? ( because changes to php.ini are lost on reboot)..could you guide me to put an entry in rc.conf to achieve file size 512mb in php.ini
Finally
on a 2GB ram installation with AMD sempron 145 (2.8 ghz CPU) the performance is very good but the RAM reported in status is only 756mb Where does the other ram go? (what is the breakup of RamDISK /var etc etc)
Thank you
cirkit
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
YES , you can format and mount second partition of USB ( unused space), but remember that is not recomended to write logs to USB Key due write cycle problems ( not problem if you plan to buy one USB key a year).cirkit wrote:Can I have my logs stored on any other part of the same USB stick as it is 8GB in size?
http://wiki.nas4free.org/doku.php?id=faq:0055
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
go to load Nas4Free on RAM = embeded, if you want more free RAM install Nas4Free full:cirkit wrote:on a 2GB ram installation with AMD sempron 145 (2.8 ghz CPU) the performance is very good but the RAM reported in status is only 756mb Where does the other ram go? (what is the breakup of RamDISK /var etc etc)
http://wiki.nas4free.org/doku.php?id=faq:0075
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
The easy way is to use / install Nas4Free full, is designed to do not lose changes / installs when rebootcirkit wrote:I have set my var size to 512mb, I have installed a php file manager called "file thingie..which is free and very popular..it enables web based UPLOADS, DOWNLOADS, DIR CREATION/DELETE..as it uses PHP the UPLOAD file size limit is set by the PHP.ini file which in the case of N4F is 256 mb, If I want to change it to 512MB how can i achieve it? ( because changes to php.ini are lost on reboot)..could you guide me to put an entry in rc.conf to achieve file size 512mb in php.ini
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
Thank you friend for replying
I was using FreeNAS since 3 years, OFFlate I have realized that NAS devices consume lot of electricity ( My nas with 1 OS HDD and 2 DATA HDD's consumes 60W in continous mode)
Being an electronics Engineer I strive to build devices which consume less power.
By installing embedded I am avoinding to install OS on a harddrive, a hardrive consumes much more power than a USB stick in a 24x7x385 enviroment,
secondly CF cards & small capacity sata SSD's are very costly in the place where i stay.( prices of 512mb CF cards are $20 and 8GB sata SSD $35). Last year before the Bankok floods we used to by 500GB HDD for $40 so I used to install a Harddrive for OS but Today the same Harddrive costst $80. A 8gb Usb stick cost only $5
Electricity saving by substituting OS harddrive with USB
Every Harddrive consumes 3W when idle and 16W in full fledged mode, assuming 40% idle and 60% full usage time the average consumption works out to be 10W..In 24 Hrs it is 240W and in 365 Days it is 87600W or 87.6KW . My friend 87KW is huge amount of power saving. On the monetary front every 1000W of power in my place costs 0.25$ so in a year I save $22. Assuming the life of my NAS to be 5 years I would save $110 in electricity. Not only do I save $80 on the OS harddrive but also another $110 on electricity. A saving of approx $200 is really GOOD
I have recently build a NAS on Gigabyte E350n motherboard which is based on AMD Brazos platform, it offers me another 35% savings in electricity and $50 savings on mother board CPU combo.. So any body building a NAS on E350 with two DATA harddrives and embedded OS on USB can save totally $130 ( $80 + $50)on hardware and $300 ($110 + $190) in electricity. A total of $430 in 5 years.
So please help me to configure PHP.ini to set file size higher than 256mb in embedded mode
Secondly I am curious to know how My 2GB ram shows as 756mb (var size set to 512mb)..If you could provide me the breakup of RAM utilisation. I know Ram disk utilisation..but how does the equation works out to be 756mb from 2Gb?
thanks
cirkit
I was using FreeNAS since 3 years, OFFlate I have realized that NAS devices consume lot of electricity ( My nas with 1 OS HDD and 2 DATA HDD's consumes 60W in continous mode)
Being an electronics Engineer I strive to build devices which consume less power.
By installing embedded I am avoinding to install OS on a harddrive, a hardrive consumes much more power than a USB stick in a 24x7x385 enviroment,
secondly CF cards & small capacity sata SSD's are very costly in the place where i stay.( prices of 512mb CF cards are $20 and 8GB sata SSD $35). Last year before the Bankok floods we used to by 500GB HDD for $40 so I used to install a Harddrive for OS but Today the same Harddrive costst $80. A 8gb Usb stick cost only $5
Electricity saving by substituting OS harddrive with USB
Every Harddrive consumes 3W when idle and 16W in full fledged mode, assuming 40% idle and 60% full usage time the average consumption works out to be 10W..In 24 Hrs it is 240W and in 365 Days it is 87600W or 87.6KW . My friend 87KW is huge amount of power saving. On the monetary front every 1000W of power in my place costs 0.25$ so in a year I save $22. Assuming the life of my NAS to be 5 years I would save $110 in electricity. Not only do I save $80 on the OS harddrive but also another $110 on electricity. A saving of approx $200 is really GOOD
I have recently build a NAS on Gigabyte E350n motherboard which is based on AMD Brazos platform, it offers me another 35% savings in electricity and $50 savings on mother board CPU combo.. So any body building a NAS on E350 with two DATA harddrives and embedded OS on USB can save totally $130 ( $80 + $50)on hardware and $300 ($110 + $190) in electricity. A total of $430 in 5 years.
So please help me to configure PHP.ini to set file size higher than 256mb in embedded mode
Secondly I am curious to know how My 2GB ram shows as 756mb (var size set to 512mb)..If you could provide me the breakup of RAM utilisation. I know Ram disk utilisation..but how does the equation works out to be 756mb from 2Gb?
thanks
cirkit
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
use varsize in rc.conf , see viewtopic.php?f=75&t=204cirkit wrote:So please help me to configure PHP.ini to set file size higher than 256mb in embedded mode
you must change it on System|Advanced|rc.conf
I use two Cf of 4GB = 5$ I don't need more extra space on boot disk, I use two because I clone one to other to test new versions if somethings goes wrong, only need to boot from not upgraded CF.cirkit wrote:CF cards & small capacity sata SSD's are very costly in the place where i stay.( prices of 512mb CF cards are $20 and 8GB sata SSD $35). Last year before the Bankok floods we used to by 500GB HDD for $40 so I used to install a Harddrive for OS but Today the same Harddrive costst $80. A 8gb Usb stick cost only $5
I don't notice write / exaust life of CF, but if somedays I notice problem, I only need to buy two news, (this time I suppose to buy 8GB CF = 7$), CF has a transfer speed of 30MB, that is enought to boot Nas4free , perhaps no enought for a big webserver, but to serve files by SAMBA to my SAMSUNG TV is enought, and is only 0.2W power.
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
I have set my var size to 512m in rc.conf, but php.ini limits this to 256mb, how do I change this on an embedded installation.Pl help
cirkit
cirkit
-
fsbruva
- Advanced User

- Posts: 378
- Joined: 21 Sep 2012 14:50
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
2 things-
If logs are actually that important to you (you say VERY important), then I would avoid exhausting the read/write cycle of your flash memory with logging to the USB. Or, you could direct MOST of the logs to /mnt, and let dyndns log to the USB. If those get lost, it is not that big a deal.
In case you decide to store the logs on /mnt, you can do the following (if you haven't already - and it's easier than symlinking):
1. Use the webgui to create a directory someplace (not on your USB/CF) to store the logs: mkdir /mnt/zpool/logs
2. Put an entry in rc.conf: clog_logdir = /mnt/zpool/logs
Enjoy! Persistent logs! You can also relocate the fuppes, mtdaapd, and rsync logs to this location, as well.
Why do you need such a large php upload size? Why not just use Samba of FTP? Also, if you can resize it in php.ini, then write a script to resize it in php on every reboot.
If logs are actually that important to you (you say VERY important), then I would avoid exhausting the read/write cycle of your flash memory with logging to the USB. Or, you could direct MOST of the logs to /mnt, and let dyndns log to the USB. If those get lost, it is not that big a deal.
In case you decide to store the logs on /mnt, you can do the following (if you haven't already - and it's easier than symlinking):
1. Use the webgui to create a directory someplace (not on your USB/CF) to store the logs: mkdir /mnt/zpool/logs
2. Put an entry in rc.conf: clog_logdir = /mnt/zpool/logs
Enjoy! Persistent logs! You can also relocate the fuppes, mtdaapd, and rsync logs to this location, as well.
Why do you need such a large php upload size? Why not just use Samba of FTP? Also, if you can resize it in php.ini, then write a script to resize it in php on every reboot.
-
armandh
- Advanced User

- Posts: 398
- Joined: 23 Jun 2012 04:15
- Location: St Louis County Missouri USA
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
saving $ on power
if one is storing the embedded OS on a small Hdd
that drive can be installed and spun down after 5 minutes [just installed, not mounted]
it will spin up for config changes and back down after 5 more minutes
RE disappearing memory with an embedded OS,
memory may also be shared with on board video
if one is storing the embedded OS on a small Hdd
that drive can be installed and spun down after 5 minutes [just installed, not mounted]
it will spin up for config changes and back down after 5 more minutes
RE disappearing memory with an embedded OS,
memory may also be shared with on board video
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
Pl help me with a script to resize php.ini on every reboot, where do i copy the script file (how do i place in the N4F (preinit..command script with path)) and how will it execute..I know this is a noob 's question..but help will be highly appreciated..I have followed the suggestions to move the logs to /mnt to avoid frequent write cycles to the USB and they work fine.
thanks
cirkit
thanks
cirkit
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Nas4Free 9.1.0.1 (306) php.ini help
In the embedded version the max file size parameter by php.ini is set to 256mb, I want to change it to 512m/1G. pl help me with a a script that will run postinit or what ever way so that I can have php.ini handle files greater that 256m. ( embedded versions do not store changes to php.ini after reboots).
Pl mention the steps as I am a noob in script writing and please mention whether to it run pre / post init and where to place it and execute it from webgui
thanks
cirkit
Pl mention the steps as I am a noob in script writing and please mention whether to it run pre / post init and where to place it and execute it from webgui
thanks
cirkit
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
On system partition you have file mfsroot.gz.
Copy it into your storage, unzip and attach as filesystem with mdconfig(8)
use unit number > 2, such 5
Mount device to temporary folder
navigate to your file end edit it. (You can add string to additional config file
)
unmount /mnt/tmp
gzip -9 mfsroot.
replace system mfsroot.gz on your building
Copy it into your storage, unzip and attach as filesystem with mdconfig(8)
use unit number > 2, such 5
Mount device to temporary folder
Code: Select all
mount /dev/md5 /mnt/tmp unmount /mnt/tmp
gzip -9 mfsroot.
replace system mfsroot.gz on your building
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
I am no expert at linux / unix hence these are the steps i followed..but I am stuck at the final stage
a) I logged into my NAS using winSCP in in the /cf folder
b) I found the mfsroot.gz file, I copied it to the desktop of my Windows PC (used WinScp)
c) Extracted it (used Winrar),
d) Copied it bact to /mnt/tmp to my NAS (used WinSCP),
e) Used mdconfig (mdconfig -a -f /mnt/tmp/mfsroot -u 5) to attach as filesystem and then mounted it, (used PuTTY to login to the NAS)
f) Edited the php.ini file, (logged in using WinSCp and navigated to find php.ini)
g) Unmounted mfsroot, (used Putty to issue "umount")
h) Used gzip to re-pack it, (used PuTTY)
i) Copied it back to my Windows PC desktop, (used WinScp)
Now I have my modified mfsroot.gz but how do I insert / replace this mfsroot in my embedded image file ..which tool to use..? Pl guide..
I use phydiskwrite to write the image file from my desktop to a USB stick
cirkit
a) I logged into my NAS using winSCP in in the /cf folder
b) I found the mfsroot.gz file, I copied it to the desktop of my Windows PC (used WinScp)
c) Extracted it (used Winrar),
d) Copied it bact to /mnt/tmp to my NAS (used WinSCP),
e) Used mdconfig (mdconfig -a -f /mnt/tmp/mfsroot -u 5) to attach as filesystem and then mounted it, (used PuTTY to login to the NAS)
f) Edited the php.ini file, (logged in using WinSCp and navigated to find php.ini)
g) Unmounted mfsroot, (used Putty to issue "umount")
h) Used gzip to re-pack it, (used PuTTY)
i) Copied it back to my Windows PC desktop, (used WinScp)
Now I have my modified mfsroot.gz but how do I insert / replace this mfsroot in my embedded image file ..which tool to use..? Pl guide..
I use phydiskwrite to write the image file from my desktop to a USB stick
cirkit
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
Ok, I understend.
Step-by step instruction
1. Before work with system files pls make bakup. I use for it diskimager tool. It work as portable, without instalation on pc and know how to work with large flashes. Download it, unpack and use.
2. Shutdown your nas, make backup flash. You need create empty file backup before start tool.

Now you have full backup and you not afraid of anything.
3. Place flash into nas and power on it.
4. On your nas your have storage - connected disk, mounted to /mnt. I call it as <DISK>. You have another name, pls put valid name for all comand.
5. Create temporary folder into <DISK>
6. Copy mfsroot.gz into
7 unzip it.
8. Make memory based disk and attach it as md5.
9. Now your have new device - /dev/md5. Mount it for edit.
10. Mfsroot files ready for edit. You can find content mfsroot in /md folder. Navigate with WinSCP into /md/usr/local/etc and edit your php.ini. Edit file and save it. Ithink - better way add path to additional config , placed on your disk. You can edit it any time.
11. Clean after work and compress mfsroot
12. Now you have edited mfsroot .gz. Put it into system partition and test it.
12.a Check name of your flash. Must be da0, and working partition as da0a
You receive list devices
12.b Copy mfsroot for his place
14. You have edited mfsroot. Test it.
You have backup on Windows PC. (if not work) 
Step-by step instruction
1. Before work with system files pls make bakup. I use for it diskimager tool. It work as portable, without instalation on pc and know how to work with large flashes. Download it, unpack and use.
2. Shutdown your nas, make backup flash. You need create empty file backup before start tool.

Now you have full backup and you not afraid of anything.
3. Place flash into nas and power on it.
4. On your nas your have storage - connected disk, mounted to /mnt. I call it as <DISK>. You have another name, pls put valid name for all comand.
5. Create temporary folder into <DISK>
Code: Select all
mkdir /mnt/<DISK>/tmpCode: Select all
cp /cf/mfsroot.gz /mnt/<DISK>/tmp/Code: Select all
gunzip /mnt/<DISK>/tmp/mfsroot.gzCode: Select all
mdconfig -a -t vnode -f /mnt/<DISK>/tmp/mfsroot -u 5Code: Select all
mkdir /md
mount /dev/md5 /md11. Clean after work and compress mfsroot
Code: Select all
umount /md
mdconfig -d -u md5
gzip -9 /mnt/<DISK>/tmp/mfsroot12.a Check name of your flash. Must be da0, and working partition as da0a
Code: Select all
ls /dev | grep da12.b Copy mfsroot for his place
Code: Select all
umount /cf
mount /dev/da0a /cf
rm /cf/mfsroot.gz
cp /mnt/<DISK>/tmp/mfsroot.gz /cf/Code: Select all
rebootHome12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
Thank you Sir! Everything worked well and I have edit php.ini to handle files of 512Mb
As you mentioned in your reply that i could add a line to the ini file to point PHP to read ini file from my /mnt/<DISK>
Should i add this line in the php.ini filr or can I achieve it through rc.conf....If I need to add it to php.ini pl guide what line to add
and if I need to add it to rc.conf ...also guide what parameter & value to add....here is my php.ini after following your guide
magic_quotes_gpc = off
magic_quotes_runtime = off
max_execution_time = 0
max_input_time = 180
register_argc_argv = off
file_uploads = on
upload_tmp_dir = /var/tmp/ftmp
upload_max_filesize = 512M
post_max_size = 512M
html_errors = off
include_path = ".:/etc/inc:/usr/local/www"
session.gc_maxlifetime = 180
session.save_path = /tmp
date.timezone = 'Asia/Kolkata'
From the above Can I change upload_tmp_dir to /mnt/<DISK>/tmp/ftmp
and
session.save also to /mnt/<DISK>/ss/tmp
Thank you once again for all the help
cirkit
As you mentioned in your reply that i could add a line to the ini file to point PHP to read ini file from my /mnt/<DISK>
Should i add this line in the php.ini filr or can I achieve it through rc.conf....If I need to add it to php.ini pl guide what line to add
and if I need to add it to rc.conf ...also guide what parameter & value to add....here is my php.ini after following your guide
magic_quotes_gpc = off
magic_quotes_runtime = off
max_execution_time = 0
max_input_time = 180
register_argc_argv = off
file_uploads = on
upload_tmp_dir = /var/tmp/ftmp
upload_max_filesize = 512M
post_max_size = 512M
html_errors = off
include_path = ".:/etc/inc:/usr/local/www"
session.gc_maxlifetime = 180
session.save_path = /tmp
date.timezone = 'Asia/Kolkata'
From the above Can I change upload_tmp_dir to /mnt/<DISK>/tmp/ftmp
and
session.save also to /mnt/<DISK>/ss/tmp
Thank you once again for all the help
cirkit
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) embedded log file and php queries
solved in: viewtopic.php?f=56&t=1335
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
you can override global php.ini setting if you add line
I not check it, I'm not programmer
Also need check one issue
When I run webserver and create in root folder 1.php file with content <?php phpinfo(); ?> I see on my webserver when I go to http://myip/1.php not secure line
Manualuser_ini.filename "/path/webserver/documentroot/.user.ini"
I not check it, I'm not programmer
Also need check one issue
When I run webserver and create in root folder 1.php file with content <?php phpinfo(); ?> I see on my webserver when I go to http://myip/1.php not secure line
Files which present in this folders can total destroy server. I don't know how to repair this. May be anybody (zoon or daoyama, how do you do? ) can help me?include_path .:/etc/inc:/usr/local/www .:/etc/inc:/usr/local/www
You need override this settings, try to do it.From the above Can I change upload_tmp_dir to /mnt/<DISK>/tmp/ftmp
and
session.save also to /mnt/<DISK>/ss/tmp
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
I'll try to change the settings as per your instructions..but before that i require one more help
I have learned to edit and then save changes to mfsroot.gz and then insert back into the system
I need to know how can I insert the file mfsroot.gz in the NAS4Free-x64-embedded-9.1.0.1.306.img file so that all future USB sticks that I write
will contain the modified mfsroot.gz.
Thanks
cirkit
I have learned to edit and then save changes to mfsroot.gz and then insert back into the system
I need to know how can I insert the file mfsroot.gz in the NAS4Free-x64-embedded-9.1.0.1.306.img file so that all future USB sticks that I write
will contain the modified mfsroot.gz.
Thanks
cirkit
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
Some way.
If you have NAS4Free-x64-embedded-9.1.0.1.306.img, unzip it.
Extracted file attach with mdconfig.
You need find mfsroot.gz. Copy it, edit and replace.
If you have NAS4Free-x64-embedded-9.1.0.1.306.img, unzip it.
Extracted file attach with mdconfig.
You need find mfsroot.gz. Copy it, edit and replace.
Last edited by alexey123 on 03 Oct 2012 16:23, edited 1 time in total.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
I tried to open NAS4Free-x64-embedded-9.1.0.1.306.img with winrar, 7zip but I could not see any thing except one file inside.
pl help
cirkit
pl help
cirkit
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
I update post. Attach extracted file with mdconfigcirkit wrote:I tried to open NAS4Free-x64-embedded-9.1.0.1.306.img with winrar, 7zip but I could not see any thing except one file inside.
pl help
cirkit
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
I tried to use win32 diskimager but it did not work for me
My Desktop OS is win 7 Ultimate 64bit
My USB stick with modified mfsroot.gz is working perfectly...Now I want to achieve 2 tasks
1) I want to clone this USB stick to another
I tried to use Norton Ghost 11
I tried clonezilla v12
But they were not able to clone the USB stick ( I use sandisk cruzer blade 8Gb USB stick)
Norton ghost does not recognize the Working Nas4Free disk,
while clonezilla throws me out with an error message of source smaller than 28mb, use -C option
I tried to read the disk in win32diskimage but it created an 8Gb file
what is the fastest and best way to clone this disk and also to save it an an image on the harddisk ( on windows 7) as an image so it can be used in future to prepare other USB sticks
Thanks
cirkit
My Desktop OS is win 7 Ultimate 64bit
My USB stick with modified mfsroot.gz is working perfectly...Now I want to achieve 2 tasks
1) I want to clone this USB stick to another
I tried to use Norton Ghost 11
I tried clonezilla v12
But they were not able to clone the USB stick ( I use sandisk cruzer blade 8Gb USB stick)
Norton ghost does not recognize the Working Nas4Free disk,
while clonezilla throws me out with an error message of source smaller than 28mb, use -C option
I tried to read the disk in win32diskimage but it created an 8Gb file
what is the fastest and best way to clone this disk and also to save it an an image on the harddisk ( on windows 7) as an image so it can be used in future to prepare other USB sticks
Thanks
cirkit
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
I use Acronis True Image ( booting from CDROM with USBKey inserted on win7 PC).cirkit wrote:what is the fastest and best way to clone this disk and also to save it an an image on the harddisk ( on windows 7) as an image so it can be used in future to prepare other USB sticks
please see: viewtopic.php?f=68&t=266&p=742
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
Work or not work?cirkit wrote:I tried to use win32 diskimager but it did not work for me
....
My USB stick with modified mfsroot.gz is working perfectly...Now I want to achieve 2 tasks
...
But they were not able to clone the USB stick ( I use sandisk cruzer blade 8Gb USB stick)
.....
I tried to read the disk in win32diskimage but it created an 8Gb file
If you use 8G flash - you must receive disk32imager backup as flash size. It see 8G - it make 8G image.
If you want smaller size - you have freebsd aka nas4free.
Step by step.
Check number and names of md - devices. If you use embedded version - you need have 2 pcs aka md0 and md1.
md0 = root filesystem, md1= var filesystem.
Code: Select all
ls /dev | grep mdYou have temporary folder /mnt/<DISK>/tmp from mfsroot edit. Use it.
NOTE: If you download embedded image you need extract it
You have downloaded nas4free image. Upload it with winscp to your temporary folder and rename as image.img.gz
Code: Select all
gunzip /mnt/<DISK>/tmp/image.img.gzCode: Select all
mdconfig -a -t vnode -f /mnt/<DISK>/tmp/image.img -u 6
mkdir /mnt/img
mount /dev/md6a /mnt/imgRemove old mfsroot and copy your building.
Code: Select all
rm /mnt/img/mfsroot.gz
cp /cf/mfsroot.gz /mnt/img/If you need, you can compress it, as nas4free distribution.
Code: Select all
gzip -9 /mnt/<DISK>/tmp/image.img
Last edited by alexey123 on 04 Oct 2012 18:07, edited 4 times in total.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
when I try to mount md5 or md6 i get this message
jstraders:~# mdconfig -a -f /mnt/SGT4GB1/tmp/image.img -u 5
jstraders:~# mkdir /mnt/SGT4GB1/img
jstraders:~# mount /dev/md5 /mnt/SGT4GB1/img
mount: /dev/md5: Invalid argument
when I issue the command
ls /var | grep md
there is no output
I am stuck
cirkit
jstraders:~# mdconfig -a -f /mnt/SGT4GB1/tmp/image.img -u 5
jstraders:~# mkdir /mnt/SGT4GB1/img
jstraders:~# mount /dev/md5 /mnt/SGT4GB1/img
mount: /dev/md5: Invalid argument
when I issue the command
ls /var | grep md
there is no output
I am stuck
cirkit
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
Oh, sory
And need mount md5a device. I go repaire commands
Code: Select all
ls /dev |grep mdHome12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
cirkit
- Starter

- Posts: 21
- Joined: 27 Jun 2012 01:33
- Location: India
- Status: Offline
Re: Nas4Free 9.1.0.1 (306) php.ini help
Thank you..Every thing worked well..Now I have learned to modify mfsroot.gz and also to preapre a custom build using the below steps
Using the previous steps I successfully modified mfsroot.gz ( opened php.ini within mfsroot.gz & changed file size from 256Mb to desired 512mb , 1024mb or 2048Mb)
The final steps to include mfsroot.gz in a build is as follows
My Storage lies at /mnt/SGT4GB1/Userone
I logged onto NAS4free using WinScp and created a directory called "tmp" /mnt/SGT4GB1/Userone/tmp
Copied the Downloaded embedded image file to the tmp directory and renamed the file as image.img.gz
then from shell of NAS4Free I follwed the steps below
1)
This extracts the image file image.img to the tmp directory
2)
Creates a files system
3)
Creates a directory called "img" to mount the filesystem
4)
This mounts the file system to "img"
navigate to the /mnt/SGT$GB1/Userone/img and verify presence of mfsroot.gz file
close WinScp
5)
removes the original mfsroot.gz file
6)
copies mfsroot.gz from the /cf directory ( modified mfsroot.gz created following previous steps) to /mnt/SGT4Gb1/Userone/img/ folder
7)
umount device & filesystem
9)
This compresses the image.img to image.img.gz
10) Log on using WinScp and copy file image.img.gz to Windows Desktop
11) reanme image.img.gz as image.img and write it to USB stick using phydiskwrite or USB Image Tool
And the new build with modified php.ini is ready
Thank you all
cirkit
Using the previous steps I successfully modified mfsroot.gz ( opened php.ini within mfsroot.gz & changed file size from 256Mb to desired 512mb , 1024mb or 2048Mb)
The final steps to include mfsroot.gz in a build is as follows
My Storage lies at /mnt/SGT4GB1/Userone
I logged onto NAS4free using WinScp and created a directory called "tmp" /mnt/SGT4GB1/Userone/tmp
Copied the Downloaded embedded image file to the tmp directory and renamed the file as image.img.gz
then from shell of NAS4Free I follwed the steps below
1)
Code: Select all
gunzip /mnt/SGT4GB1/Userone/tmp/image.img.gz2)
Code: Select all
mdconfig -a -f /mnt/SGT4GB1/Userone/tmp/image.img -u 53)
Code: Select all
mkdir /mnt/SGT4Gb1/Userone/img4)
Code: Select all
mount /dev/md5a /mnt/SGT4GB1/Userone/tmpnavigate to the /mnt/SGT$GB1/Userone/img and verify presence of mfsroot.gz file
close WinScp
5)
Code: Select all
rm /mnt/SGT4GB1/Userone/img/mfsroot.gz6)
Code: Select all
cp /cf/mfsroot.gz /mnt/SGT4Gb1/Userone/img/mfsroot.gz7)
Code: Select all
umount /dev/md5a
8) mdconfig -d -u 59)
Code: Select all
gzip -9 /mnt/SGT4GB1/Userone/tmp/image.img10) Log on using WinScp and copy file image.img.gz to Windows Desktop
11) reanme image.img.gz as image.img and write it to USB stick using phydiskwrite or USB Image Tool
And the new build with modified php.ini is ready
Thank you all
cirkit