Help, install nextcloud on FreeNAS-11.3-U1

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Hi all,
please help, i installed nextcloud in freenas , using this video tutorial :

www.youtube.com

How to Setup NextCloud on FreeNAS 11.2
Amazon Affiliate Store ➡️ https://www.amazon.com/shop/lawrencesystemspcpickup Gear we used on Kit (affiliate Links) ➡️ https://kit.com/lawrencesystems Try IT...
www.youtube.com
www.youtube.com

but there's a little different, after install finished, they go to management which there's some field about :
1. Data folder
2. Configure database

But i'm not find it when installing nextcloud on my freenas,
and after finished, i check this nextcloud is running well, but there's some warning like below :

There are some warnings regarding your setup.
  • PHP does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response. Please check the installation documentation ↗ for PHP configuration notes and the PHP configuration of your server, especially when using php-fpm.
  • Some app directories are owned by a different user than the web server one. This may be the case if apps have been installed manually. Check the permissions of the following app directories:
    • /usr/local/www/nextcloud/apps-pkg/accessibility
    • /usr/local/www/nextcloud/apps-pkg/activity
    • /usr/local/www/nextcloud/apps-pkg/admin_audit
    • /usr/local/www/nextcloud/apps-pkg/cloud_federation_api
    • /usr/local/www/nextcloud/apps-pkg/comments
    • /usr/local/www/nextcloud/apps-pkg/dav
    • /usr/local/www/nextcloud/apps-pkg/encryption
    • /usr/local/www/nextcloud/apps-pkg/federatedfilesharing
    • /usr/local/www/nextcloud/apps-pkg/federation
    • /usr/local/www/nextcloud/apps-pkg/files
    • /usr/local/www/nextcloud/apps-pkg/files_external
    • /usr/local/www/nextcloud/apps-pkg/files_pdfviewer
    • /usr/local/www/nextcloud/apps-pkg/files_rightclick
    • /usr/local/www/nextcloud/apps-pkg/files_sharing
    • /usr/local/www/nextcloud/apps-pkg/files_trashbin
    • /usr/local/www/nextcloud/apps-pkg/files_versions
    • /usr/local/www/nextcloud/apps-pkg/files_videoplayer
    • /usr/local/www/nextcloud/apps-pkg/firstrunwizard
    • /usr/local/www/nextcloud/apps-pkg/gallery
    • /usr/local/www/nextcloud/apps-pkg/logreader
    • /usr/local/www/nextcloud/apps-pkg/lookup_server_connector
    • /usr/local/www/nextcloud/apps-pkg/nextcloud_announcements
    • /usr/local/www/nextcloud/apps-pkg/notifications
    • /usr/local/www/nextcloud/apps-pkg/oauth2
    • /usr/local/www/nextcloud/apps-pkg/password_policy
    • /usr/local/www/nextcloud/apps-pkg/privacy
    • /usr/local/www/nextcloud/apps-pkg/provisioning_api
    • /usr/local/www/nextcloud/apps-pkg/recommendations
    • /usr/local/www/nextcloud/apps-pkg/serverinfo
    • /usr/local/www/nextcloud/apps-pkg/sharebymail
    • /usr/local/www/nextcloud/apps-pkg/support
    • /usr/local/www/nextcloud/apps-pkg/survey_client
    • /usr/local/www/nextcloud/apps-pkg/systemtags
    • /usr/local/www/nextcloud/apps-pkg/text
    • /usr/local/www/nextcloud/apps-pkg/theming
    • /usr/local/www/nextcloud/apps-pkg/twofactor_backupcodes
    • /usr/local/www/nextcloud/apps-pkg/updatenotification
    • /usr/local/www/nextcloud/apps-pkg/user_ldap
    • /usr/local/www/nextcloud/apps-pkg/viewer
    • /usr/local/www/nextcloud/apps-pkg/workflowengine
how to solve this warning ?

Please help .

Thank you verymuch.


Regards
 
Joined
Jan 7, 2015
Messages
1,155
You can fix the permissions issues from the FreeNAS host cli
iocage exec nextcloud chown -R www:www /usr/local/www/nextcloud/apps-pkg

This will fix those issues that pertain to permissions.

The PHP error can be fixed by uncommenting a line in this file per the Nextcloud documentation.
;clear_env = no
;env[PATH] = /usr/local/bin:/usr/bin:/bin
remove the ";" from both lines. In the file listed below.
/usr/local/etc/php-fpm.d/www.conf
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Hi John,

may i ask u something ?
from the youtube tutorial in the first post, it's possibe and easy to create specific data set for nextcloud,
but when i install nextclout from the beginning until finished, nothing show any field for me to put the new data set that i've created specific for nextcloud.

how to configure data folder for nextcloud ? now my data nextcloud is default inside jails.

Thank you verymuch.

Regards,
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
You can fix the permissions issues from the FreeNAS host cli
iocage exec nextcloud chown -R www:www /usr/local/www/nextcloud/apps-pkg

This will fix those issues that pertain to permissions.

The PHP error can be fixed by uncommenting a line in this file per the Nextcloud documentation.
;clear_env = no
;env[PATH] = /usr/local/bin:/usr/bin:/bin
remove the ";" from both lines. In the file listed below.
/usr/local/etc/php-fpm.d/www.conf

i try that command . show like this :

root@FBI:~ # iocage exec nextcloud chown -R www:www /usr/local/www/nextcloud/app s-pkg
jail 'nextcloud' not found!
root@FBI:~ #

please more advice..
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
You will be better off using Danb35's script:

 
Joined
Jan 7, 2015
Messages
1,155
Yes if there's a script these days go ahead and give it a try. Otherwise you are close, the jail your nextcloud is installed to is not named nextcloud apparently
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
please help , any tutorial more detail about how to install nextcloud iocage in freenas using ur script ?
i'm not so expert in linux, just a litlle.
when i see the script tutorial text from u, i have no idea ,where am i suppose to start ? in freenas shell ? or else ?
please help ,
or any video tutorial for install nextcloud using script created by Danb35 ?

Thank you for your kindness,

Regards,
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Did you read what is written in the linked guide? How could it be more detailed? Literally every step is written
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
i a little confuse in this part :
  • DNS_PLUGIN: If DNS_CERT is set, DNS_PLUGIN must contain the name of the DNS validation plugin you'll use with Caddy to validate domain control. See the Caddy documentation under the heading of "DNS Providers" for the available plugins, but omit the leading "tls.dns.". For example, to use Cloudflare, set DNS_PLUGIN="cloudflare".
  • DNS_ENV: If DNS_CERT is set, DNS_ENV must contain the authentication credentials for your DNS provider. See the Caddy documentation under the heading of "DNS Providers" for further details. For Cloudflare, you'd set DNS_ENV="CLOUDFLARE_EMAIL=foo@bar.baz CLOUDFLARE_API_KEY=blah".
what's the meaning ?
because i'm not seeing about DNS , only create this :

You'll now need to create the configuration file: nano nextcloud-config. It should look like this:
Code:
JAIL_IP="192.168.1.199"
DEFAULT_GW_IP="192.168.1.1"
POOL_PATH="/mnt/tank"
TIME_ZONE="America/New_York"
HOST_NAME="YOUR_FQDN"
STANDALONE_CERT=1
CERT_EMAIL=you@yourdomain.tld
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
What is your goal with Nextcloud? It dosent sound like it will be easy for you to maintain a complicated application on FreeBSD
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
just make a cloud storage with ip lan in my existing freenas , which NAT to my ip public, for domain, i will create ns record to my ip public which specific port.
like that sir .
 
Last edited:

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
just make a cloud storage with IP
This won’t work with Let’s encrypt
which NAT to my IP public
IP public which specific port
DNS dosent handle ports

you need your domain to point to a specific public IP,if you then have more then one application you need a reverse proxy to handle the different requests.
you really shouldn’t have self signed certificates if you plan on exposing this thing on the open web. You are much better off using let’s encrypt as per the guide.
to do that you need to buy a domain and sign up with a DNS provider. Cloudflare is used as an example because they are fast, secure, and free, but you can use any provider you want. Having one supported by Caddy makes the process easier. If you have specific questions on the script, you should probably ask the author, in the script thread. But if you do not understand the underlying tech, you need to start reading about that.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
You can fix the permissions issues from the FreeNAS host cli
iocage exec nextcloud chown -R www:www /usr/local/www/nextcloud/apps-pkg

This will fix those issues that pertain to permissions.

The PHP error can be fixed by uncommenting a line in this file per the Nextcloud documentation.
;clear_env = no
;env[PATH] = /usr/local/bin:/usr/bin:/bin
remove the ";" from both lines. In the file listed below.
/usr/local/etc/php-fpm.d/www.conf
You can fix the permissions issues from the FreeNAS host cli
iocage exec nextcloud chown -R www:www /usr/local/www/nextcloud/apps-pkg

This will fix those issues that pertain to permissions.

The PHP error can be fixed by uncommenting a line in this file per the Nextcloud documentation.
;clear_env = no
;env[PATH] = /usr/local/bin:/usr/bin:/bin
remove the ";" from both lines. In the file listed below.
/usr/local/etc/php-fpm.d/www.conf
hi, the nextcloud already installed from plugins freenas, then it's running now ,

the issue about permission is already fixed as John info the command :

You can fix the permissions issues from the FreeNAS host cli
iocage exec nextcloud chown -R www:www /usr/local/www/nextcloud/apps-pkg

now if i see in my nextcloud setting -- administration -- overview , shown like this :

freenas nextcloud.JPG


how to fix some warning in orange light ? and how to upgrade nextcloud from 17.0.1 to 17.0.5 ?

Regards,
 
Top