Installing Nextcloud

Am finally going to install Nextcloud.

Can anyone tell me if these are the requireds pkgs for Nexcloud (using Postgresql)?

pkg install nextcloud postgresql16-server apache24 php82 php82-pgsql php82-gd php82-curl php82-zip php82-mbstring php82-intl php82-bcmath php82-gmp php82-opcache

This is according to ChatGPT, which often gets things wrong so I thought I'd run it by the experts first before I start.
 
Nextcloud package seems to support MySQL by default for database.

The web server choice seems to be left to the user, I guess.

You could use Apache or nginx as web server.

I also think that php-fpm might be required for nextcloud but it doesn't seem to be a dependency.
 
I've personally been using php83 without any problems with nextcloud. So, you can update at least that far. I feel like I had a reason for not using php84, but I can't remember why and whatever it was could be a non-issue now.
 
According to https://www.sharpwriting.net/project/nextcloud-on-freebsd/#3

Next, we need to configure Apache to handle php files. Go to /usr/local/etc/apache24/Includes and create a new file. I called mine php-fpm.conf but you call it whatever you like as long as it ends in .conf.

PHP:
<FilesMatch \.php$>
    SetHandler proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/
</FilesMatch>

Does that look right?

I thought I needed to add something like this:-

PHP:
<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>
 

is a six year old guide.

Has anyone seen anything newer using www/nextcloud?
 
Back
Top