Hello all, want to install Nextcloud into FreeBSD and was hoping some one might hep me with the installation instructions and setup. Will be running this in a FreeNAS 9.10 jail.
It’s Here!
well almost, i just now did this
follow this -
then this
replace step 1 with
pkg install nextcloud
and then replace every “owncloud” with “nextcloud”
works great and just took me 5 minutes!
if your jail is not on the same pool as where you want to store your data then add storage to the jail via freenas gui - i mounted mine to /storage
set the permissions to user = www owner = www
also do this last
You will probably want to add an alias to your httpd.conf file, something
like this:
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
</Directory>
And restart Apache.```
away you go! - put this in your browser
http://your_ip/nextcloud/
Followed the instructions and did not seem to run into any errors or issues except for the following:
When configureing the php.conf file for apapche to use PHP module, when I do the vi command the file it opens is blank. Is that correct or should there already be some information in that file.
The other question is at the very last step regarding to add alias to the httpd.conf file. When I browse to /usr/local/www/nextcloud I dont see a httpd.conf file there. If I do a find command I find the httpd.conf file in /usr/local/etc/apache24/ folder.
When I browse to the box IP I get the error Not Found The requested URL /nextcloud/ was not found on this server.
Any suggestions for me to look at fixing this?
Your apache configuration in FreeBSD is found here /usr/local/etc/apache24/, you probably need to put a configuration file in /usr/local/etc/apache24/sites-available/nextcloud.conf
Alias /nextcloud "/usr/local/www/nextcloud"
<Directory /usr/local/www/nextcloud>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /usr/local/www/nextcloud
SetEnv HTTP_HOME /usr/local/www/nextcloud
</Directory>
Then restart apache.
Good afternoon I would like to add a few notes to this setup to make it easier for people in the future:
For the first link(https://www.digitalocean.com/community/tutorials/how-to-install-an-apache-mysql-and-php-famp-stack-on-freebsd-10-1131)
Do this:
for Step four(Configure Apache to use PHP):
-
For freebsd the config file is found in: /usr/local/etc/apache24/httpd.conf
If it isn’t there, copy it from /usr/local/etc -
Make sure you copy the lines into the config in the proper location(httpd.conf), like so:
paste the lines after “LoadModule php5_module libexec/apache24/libphp5.so”
So it looks something like this
LoadModule php5_module libexec/apache24/libphp5.so
#added for nextcloud
<IfModule dir_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>