Installing WordPress on a FreeNAS Jail

After creating a basic jail do this:
Step 1 Configue the the Jail to Use SSH
Step 2 – Setup Apache, MySQL and PHP – NOTE: Make changes for your version of PHP
with minor changes from
Step 3 – install workpress

Manually importing a FreeNAS Jail

I just had this same issue today and came across your post.
The reason mine crashed was because the plugin i was importing was huge (about 10GB in size).
–What i ended up having to do was manually create a dataset. Im using plex as an example.
zfs create zpool/iocage/jails/Plex
or use the GUI
–Then unzip the file that you got from your export. I unzipped it to the iocage/images folder. you should have two files, one the same name as the zip file and one with _root added to the name.
–Next i had to import the data from the unzipped files.
zfs recv -F zroot/iocage/jails/plex < plex_2019-10-30
zfs recv -F zroot/iocage/jails/plex/root < plex_2019-10-30_root
Once you do this then you should see it in freenas in the jails section. It came up as if nothing had ever happened for me. Hope this helps anyone else that came across this.
as i was also changing pools i had to edit the fstab file in the jails/<jail> directory

Installing software into a FreeNAS jail

Go to Jails
On the right side of the page click the triple dots next to the Plex jail and select Shell
type “whoami” and make sure the response is root (if not use su – or sudo)
type vi /usr/local/etc/pkg/repos/FreeBSD.conf and press enter
If the file exists, look for a line with “FreeBSD: { enabled: no }” and change the no to a yes
If the file is empty type out “FreeBSD: { enabled: yes }
(if you are unfamiliar with vi, to edit just press the letter “a” then type the above stuff without the quotes)
To save, hit the escape button twice and type “:wq” without the quotes
type “exit”
Hit the triple dots again and hit restart for the plex jail
After a few seconds and it is back online hit the triple dots and go to shell
type “pkg update -f” if it prompts you for anything say yes
type “pkg upgrade” and if it prompts you for anything hit yes
You should now be able to install what you need by doing: “pkg install wget ca_root_nss curl perl5 -y”