Let's see how networking works from inside the jail. Doiocage console nextcloud
followed byhost google.com
.
FreeBSD 11.1-STABLE (FreeNAS.amd64) #0 r321665+de6be8c8d30(freenas/11.1-stable): Tue Feb 20 02:38:09 UTC 2018 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier Edit /etc/motd to change this login announcement.
google.com has address 74.125.126.138 google.com has address 74.125.126.139 google.com has address 74.125.126.100 google.com has address 74.125.126.113 google.com has address 64.233.184.100 google.com has address 108.177.12.138 google.com has address 108.177.12.101 google.com has address 64.233.184.101 google.com has address 64.233.184.113 google.com has address 64.233.184.138 google.com has address 108.177.12.100 google.com has address 108.177.12.102 google.com has address 64.233.184.139 google.com has address 108.177.12.139 google.com has address 74.125.126.101 google.com has address 108.177.12.113 google.com has address 74.125.126.102 google.com has address 64.233.184.102 google.com has IPv6 address 2a00:1450:400c:c0b::8a google.com mail is handled by 10 aspmx.l.google.com. google.com mail is handled by 40 alt3.aspmx.l.google.com. google.com mail is handled by 20 alt1.aspmx.l.google.com. google.com mail is handled by 50 alt4.aspmx.l.google.com. google.com mail is handled by 30 alt2.aspmx.l.google.com.
service apache24 status
. If that shows it's running, what happens when you try to browse to it from inside your network? If you go to https://192.168.0.11, what do you see?Assuming you're using the legacy GUI, that's normal. What aboutI can't see any entry under "Jail" either - is that normal?
service apache24 status
from inside the jail?
service apache24 start
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 25 of /usr/local/etc/apache24/Includes/*IP*.conf:
SSLCertificateFile: file '/usr/local/etc/pki/tls/certs/fullchain.pem' does not exist or is empty
Starting apache24.
AH00526: Syntax error on line 25 of /usr/local/etc/apache24/Includes/*IP*.conf:
SSLCertificateFile: file '/usr/local/etc/pki/tls/certs/fullchain.pem' does not exist or is empty
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
This is a problem. Do you not have a domain name? If not, you won't be able to get a cert, and therefore this script won't work for you.*IP*.conf
Well, you could have issued another certificate--Let's Encrypt will let you issue up to 5 identical certs within a week. That would have been the simplest way to avoid the issue. However, since the jail's set up, there's no real reason to destroy the jail and start over. You'll just need to issue a new cert for this jail. Since you're now using cloudflare for your DNS, I'd suggest using DNS validation to get the cert. Log in to your cloudflare account, go to your control panel, and get your global API key. Then, do:After that I used the IP instead of the domain, because I did not receive a new certificate for the domain I already used, as I understood it.
iocage console nextcloud export CF_Key="sdfsdfsdfljlbjkljlkjsdfoiwje" export CF_Email="xxxx@sss.com" acme.sh --issue --dns dns_cf -d your_fqdn --fullchain-file /usr/local/etc/pki/tls/certs/fullchain.pem --key-file /usr/local/etc/pki/tls/private/privkey.pem --reloadcmd "service apache24 reload"
Performing sanity check on apache24 configuration: AH00112: Warning: DocumentRoot [/usr/local/www/apache24/data/nextcloud] does not exist AH00112: Warning: DocumentRoot [/usr/local/www/apache24/data/nextcloud] does not exist Syntax OK
Not really; that shouldn't be possible. You downloaded the script and its supporting files byAny idea what I do wrong?
git clone https://github.com/danb35/freenas-iocage-nextcloud
? Can you confirm that lines 149-150 look like this:iocage exec ${JAIL_NAME} tar xjf /tmp/latest-13.tar.bz2 -C /usr/local/www/apache24/data/ iocage exec ${JAIL_NAME} fetch -o /tmp https://download.nextcloud.com/server/releases/latest-13.tar.bz2
Thank you for your help. I will then make an external post on this subject.No idea, really; I've never played with imagick under FreeBSD as yet. I'd probably start with (based on some quick Googling)
Code:iocage console nextcloud pkg install imagick pecl install imagick
iocage exec ${JAIL_NAME} sed -i '' "s|Le_Webroot=\'no\'|Le_Webroot=\'/usr/local/www/apache24/data\'|g" /root/.acme.sh/${HOST_NAME}/${HOST_NAME}.conf