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”

How to manually update Plex in a FreeNAS jail

Pre-Update Steps
Login to the servers as root

Download the update to the server

1) change to the plexmeduaserver directory

root@plex:/ # cd/usr/local/share/plexmediaserver

2) stop the plexmediaserver service

root@plex:/usr/local/share/plexmediaserver # service plexmediaserver stop
Stopping plexmediaserver.
Cleaning up leftover child processes.

3) Copy the plex update to the current directory

3) Unzip the Plex update (the exact name of the update will be slightly different to what is shown

root@plex:/usr/local/share/plexmediaserver # tar -zavf PlexMediaServer-

4) Check it looks like it is suppose to (optional)

root@plex:/usr/local/share/plexmediaserver # ls PlexMediaServer-
Plex Commercial Skipper
Plex DLNA Server
Plex Media Fingerprinter
Plex Media Scanner
Plex Media Server
Plex Relay
Plex Script Host
Plex Transcoder
Plex Tuner Service

5) Copy everything from the newly created folder to the current folder (the exact name of the folder will be slightly different to what is shown)

root@plex:/usr/local/share/plexmediaserver # cp -r PlexMediaServer-* .

6) Start the service again

root@plex:/usr/local/share/plexmediaserver # service plexmediaserver start
Starting plexmediaserver.

7) Check the service status

root@plex:/usr/local/share/plexmediaserver # service plexmediaserver status
plexmediaserver is running as pid 5859.