Page 1 of 1

Apache in Jail

Posted: 21 Nov 2014 22:38
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.

Re: Apache in Jail

Posted: 22 Nov 2014 18:16
by laster13
Try jexec 1 csh and not tcsh and apache24 now and not 22

viewtopic.php?f=94&t=6982

Re: Apache in Jail

Posted: 25 Nov 2014 20:19
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...

Re: Apache in Jail

Posted: 25 Nov 2014 21:47
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

Re: Apache in Jail

Posted: 28 Nov 2014 21:47
by imperatorzorg
Yes!! Everything is working perfect now! Thanks guys!

Re: Apache in Jail

Posted: 27 Jan 2015 07:36
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?