Install Nextcloud?

Hi, I was wondering if there was a definitive guide to installing Nextcloud on a Freebsd-12.1 Server? I've found several bits of information, but it generally seems outdated - and I can't get it to work! I get "not found" errors, and that kind of thing. So, I clearly have configuration issues.

I've tried nginx as well as apache24. I generally use mariadb. I'm thinking that mariadb and apache24 would be the simplest, but if it uses nginx that's good too!

So I've wiped my server, and plan on doing a fresh install of FreeBSD. But first... I need a step-by-step guide to Nextcloud that will actually work! Something like this: https://websiteforstudents.com/inst...-04-with-apache2-mariadb-and-php-7-2-support/

Thanks :)
 
I suggest you start by installing www/owncloud and reading the instructions that are printed after the install.
 
Hi, I was wondering if there was a definitive guide to installing Nextcloud on a Freebsd-12.1 Server? I've found several bits of information, but it generally seems outdated - and I can't get it to work! I get "not found" errors, and that kind of thing. So, I clearly have configuration issues.

I've tried nginx as well as apache24. I generally use mariadb. I'm thinking that mariadb and apache24 would be the simplest, but if it uses nginx that's good too!

So I've wiped my server, and plan on doing a fresh install of FreeBSD. But first... I need a step-by-step guide to Nextcloud that will actually work! Something like this: https://websiteforstudents.com/inst...-04-with-apache2-mariadb-and-php-7-2-support/

Thanks :)

I have installed Nextcloud 17.0.2 on FreeBSD 12.1 days ago, I will write an update to my older Nextcloud 13 on FreeBSD article:
 
Hi, I was wondering if there was a definitive guide to installing Nextcloud on a Freebsd-12.1 Server? I've found several bits of information, but it generally seems outdated - and I can't get it to work! I get "not found" errors, and that kind of thing. So, I clearly have configuration issues.

I've tried nginx as well as apache24. I generally use mariadb. I'm thinking that mariadb and apache24 would be the simplest, but if it uses nginx that's good too!

So I've wiped my server, and plan on doing a fresh install of FreeBSD. But first... I need a step-by-step guide to Nextcloud that will actually work! Something like this: https://websiteforstudents.com/inst...-04-with-apache2-mariadb-and-php-7-2-support/

Thanks :)

Hi,

First, you need to install the FAMP stack. The following link will show you how to do it.
https://www.digitalocean.com/commun...ache-mysql-and-php-famp-stack-on-freebsd-12-0

Then you could install nextcloud 17 with the following command.
pkg install nextcloud-php73

When the installation has been finished, enter the database server and create a database and user.

enter the database
mysql -u root -p

create a database for nextcloud
create database nextcloud_db;

create a user for nextcloud
create user 'nextcloud_user'@'localhost' identified by 'yourpassword';

grant the user all the privileges to the database
grant all privileges on nextcloud_db.* to 'nextcloud_user'@'localhost';

write the privileges
flush privileges;

Then open your browser and load the nextcloud webpage. You should see a configuration webpage, just enter the information when you create the database.

That's all. Good luck.
 
As long as you have a working FAMP (FreeBSD running Apache MySQL and PHP), you are good to go. Install Nextcloud via ports or PKG and configure it via its web interface.
 
I have installed Nextcloud 17.0.2 on FreeBSD 12.1 days ago, I will write an update to my older Nextcloud 13 on FreeBSD article:
Thanks! I would be really interested to read that when you're finished!
 
Hi,

First, you need to install the FAMP stack. The following link will show you how to do it.
https://www.digitalocean.com/commun...ache-mysql-and-php-famp-stack-on-freebsd-12-0

Then you could install nextcloud 17 with the following command.
pkg install nextcloud-php73

When the installation has been finished, enter the database server and create a database and user.

enter the database
mysql -u root -p

create a database for nextcloud
create database nextcloud_db;

create a user for nextcloud
create user 'nextcloud_user'@'localhost' identified by 'yourpassword';

grant the user all the privileges to the database
grant all privileges on nextcloud_db.* to 'nextcloud_user'@'localhost';

write the privileges
flush privileges;

Then open your browser and load the nextcloud webpage. You should see a configuration webpage, just enter the information when you create the database.

That's all. Good luck.
Thanks for that...
I've gone through the instructions as written.
When I open firefox and type: http://<my_ip_address> I get apache24's "It Works!" message.
When I type in http://<my_ip_address>/nextcloud I get "Not Found".

So, I have Nextcloud installed... I just need to either configure it correctly, or to figure out how to access it on a web browser. Probably both... :)


So I'm still doing something wrong.
 
Hi, I was wondering if there was a definitive guide to installing Nextcloud on a Freebsd-12.1 Server? I've found several bits of information, but it generally seems outdated - and I can't get it to work! I get "not found" errors, and that kind of thing. So, I clearly have configuration issues.

I've tried nginx as well as apache24. I generally use mariadb. I'm thinking that mariadb and apache24 would be the simplest, but if it uses nginx that's good too!

So I've wiped my server, and plan on doing a fresh install of FreeBSD. But first... I need a step-by-step guide to Nextcloud that will actually work! Something like this: https://websiteforstudents.com/inst...-04-with-apache2-mariadb-and-php-7-2-support/

Thanks :)

Here:
Nextcloud 17 on FreeBSD 12.1
 
Thanks for that...
I've gone through the instructions as written.
When I open firefox and type: http://<my_ip_address> I get apache24's "It Works!" message.
When I type in http://<my_ip_address>/nextcloud I get "Not Found".

So, I have Nextcloud installed... I just need to either configure it correctly, or to figure out how to access it on a web browser. Probably both... :)


So I'm still doing something wrong.

Hi,

It seems the apache server do not get its proper configuration.
Code:
<Directory "/usr/local/www/apache24/data">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # [URL]http://httpd.apache.org/docs/2.4/mod/core.html#options[/URL]
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>
You should change the directory to the directory where nextcloud is installed, maybe '/usr/local/www/nextcloud'.
 
Hi,

It seems the apache server do not get its proper configuration.

<Directory "/usr/local/www/apache24/data">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>

You should change the directory to the directory where nextcloud is installed, maybe '/usr/local/www/nextcloud'.
There are some apps that would "deny" access until being properly configured. It may be that you need to create a virtualhost to access them. Nextcloud could be one of them. I know that at some point you will be asked to enter the domain name for the app. There is no virtualhost conf. in what you posted.
 
I still can't get it right. I've been through the tutorial using my testbed machine, but keep getting "page not found" when I try to access Nextcloud. I'm about to give up and stick with what I've got.
 
OK. I think I've nailed down the problem to my domain... It looks like I might have to spend some money.
 
I am really battling to get Nextcloud up and running on FreeBSD, and I really want to get this right.

I have a home server, currently running Nextcloud on Debian 10. It's connected to my Huawei wifi router, and you need to be in range of, and connected to my router to access Nextcloud. This means that my ISP doesn't get upset with high data usage.
It works great, but I love to tinker with things :)

It connects 2 laptops, a desktop, 2 Android phones, and a tablet. Sometimes I give visiting family/friends access to my wifi so that they can download whatever might interest them. I store music, ebooks, documents, photos, etc on it.

What I want is a similar setup using FreeBSD. I don't need https/secure access (letsencrypt) as it is not public-facing, and I don't plan on using my own domain: I currently just enter my IP address in the web browser/android app to access Nextcloud/Debian. A jail is great, and I'm pretty sure that I can set that up.

So, I'd like Nextcloud running on top of Mariadb, Php73 and Apache24 in a Jail, but without the overhead/hassle of https. Nginx would also be fine, as would Postgres - it really doesn't matter to me.

As far as I can ascertain, my issues are: setting domain names ("localhost", the ip address, the server name, etc - I don't seem to know which one to use) consistently, and configuring Php and Apache. My "lightbulb" moment with Debian came when I stumbled across "a2ensite" - which not all of the how-to guides chose to mention.

Would someone please point me to a "how-to" guide? For a simple setup? Duckduckgo and I have been through the exercise a half dozen times over the last few weeks and can never get it right. I install the prerequisites, create my database, and... nothing.

So, I'm missing something, and my frustration level is rising :)

Thank you.
 
I am really battling to get Nextcloud up and running on FreeBSD, and I really want to get this right.

I have a home server, currently running Nextcloud on Debian 10. It's connected to my Huawei wifi router, and you need to be in range of, and connected to my router to access Nextcloud. This means that my ISP doesn't get upset with high data usage.
It works great, but I love to tinker with things :)

It connects 2 laptops, a desktop, 2 Android phones, and a tablet. Sometimes I give visiting family/friends access to my wifi so that they can download whatever might interest them. I store music, ebooks, documents, photos, etc on it.

What I want is a similar setup using FreeBSD. I don't need https/secure access (letsencrypt) as it is not public-facing, and I don't plan on using my own domain: I currently just enter my IP address in the web browser/android app to access Nextcloud/Debian. A jail is great, and I'm pretty sure that I can set that up.

So, I'd like Nextcloud running on top of Mariadb, Php73 and Apache24 in a Jail, but without the overhead/hassle of https. Nginx would also be fine, as would Postgres - it really doesn't matter to me.

As far as I can ascertain, my issues are: setting domain names ("localhost", the ip address, the server name, etc - I don't seem to know which one to use) consistently, and configuring Php and Apache. My "lightbulb" moment with Debian came when I stumbled across "a2ensite" - which not all of the how-to guides chose to mention.

Would someone please point me to a "how-to" guide? For a simple setup? Duckduckgo and I have been through the exercise a half dozen times over the last few weeks and can never get it right. I install the prerequisites, create my database, and... nothing.

So, I'm missing something, and my frustration level is rising :)

Thank you.
Just use this guide:
 
If setting the domain is the problem have you tried:

sudo -u www php /usr/local/www/nextcloud/occ config:system:set trusted_domains 1 --value=yourlocalipaddress
 
If setting the domain is the problem have you tried:

sudo -u www php /usr/local/www/nextcloud/occ config:system:set trusted_domains 1 --value=yourlocalipaddress
I haven't... but I will, thanks. I have issues with letsencrypt as I'm using a parked domain. I don't want to pay someone to host it when I plan on doing it myself. And, as it's not a public-facing server, I really don't need "https".
 
The issue you mentioned in post #8 and #14 appears to be related to your Apache config.
 
I've finally got it! But it needs some configuration... which scares me as whenever I try what is recommended I end up breaking it. So I might just make do with what I've got. I do need a firewall, though. Something like ufw. Any recommendations?

I followed this to set it up: https://levlaz.org/installing-nextcloud-on-a-freebsd-vps/

Thanks to all of you for your help and patience!
 
Back
Top