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>