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!

Apache in Jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
imperatorzorg
NewUser
NewUser
Posts: 5
Joined: 17 Nov 2014 23:04
Status: Offline

Apache in Jail

Post by imperatorzorg »

Hi, anyone of you guys have tried to install Apache in Jail with success? I've used this tutorial (for FreeNas) because I thought it will work:
Enter the Jail and update and extract the portsnap, which we'll be using to install apache:

jexec 1 /bin/tcsh

portsnap fetch
portsnap extract


Now we can use ports to install apache:

cd /usr/ports/www/apache22
make install clean


After apache is installed, you can configure it by editing the /usr/local/etc/apache22/httpd.conf located within your Jail, where 192.168.1.61 is replaced by your Jail IP address:

#/usr/local/etc/apache22/httpd.conf
Listen 80
ServerName 192.168.1.61:80



We'll also add it to the /etc/rc.conf file so that it will automatically start on reboots:

echo 'apache22_enable="YES"' >> /etc/rc.conf

/usr/local/etc/rc.d/apache22 start
But after typing

Code: Select all

portsnap extract
command and couple of minutes of extraction i've got "No space left on device" message. I have over 200GB free space on disk. Anyone could help me with this? Thanks.

laster13
PowerUser
PowerUser
Posts: 995
Joined: 01 Jun 2013 19:15
Location: France-Marseille
Status: Offline

Re: Apache in Jail

Post by laster13 »

Try jexec 1 csh and not tcsh and apache24 now and not 22

viewtopic.php?f=94&t=6982

imperatorzorg
NewUser
NewUser
Posts: 5
Joined: 17 Nov 2014 23:04
Status: Offline

Re: Apache in Jail

Post by imperatorzorg »

Thanks, now it's working but another thing - it's installing in infinity... Did you remember how much time have you spent to install apache on your computer? I had installed apache on Debian just in few minutes, this is ridiculous...

Snunn1
Starter
Starter
Posts: 35
Joined: 05 Sep 2013 21:55
Status: Offline

Re: Apache in Jail

Post by Snunn1 »

Yes, it does take a while to compile, the best idea is to start it and leave it running overnight.

Hope this Helps
NAS4Free 10.2.0.2.2545 P14 Embedded on 1GB USB Key
HP N40L Microserver - 8GB ECC RAM, 3x Seagate 500GB RAIDZ1, 1x Seagate 500GB UFS & 1x 200GB SATA
Extensions: RRDGraphs

imperatorzorg
NewUser
NewUser
Posts: 5
Joined: 17 Nov 2014 23:04
Status: Offline

Re: Apache in Jail

Post by imperatorzorg »

Yes!! Everything is working perfect now! Thanks guys!

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: Apache in Jail

Post by fsbruva »

Was there a particular reason you built apache from scratch? Why not install the pre-build binary (which, if you used apt-get install is exactly what you did on Debian) and save some time?

Post Reply

Return to “Jails”