I spent like 3 hours following this tutorial step by step and it did not work for me. perhaps i am missing something? I admit that some of the things mentioned were a bit above my current skill set with FreeBSD. I use Linux often and yet FreeBSD seems to boggle me at certain pointsThere's a tutorial for that. It's for owncloud but just substitute nextcloud for every instance of owncloud and it will work.
https://forums.freenas.org/index.php?threads/how-to-owncloud-using-nginx-php-fpm-and-mysql.17786/
care to explain how i install it? ive tried the whole pkg install nextcloud command and it pulls all the stuff. but im unable to logon or anything elseNextCloud 12.02 is in FreeNAS 11 and it pulls all the php stuff needed. Not sure why people are still using that old article.
this part confuses me "Replace the relevant lines in /usr/local/etc/php-fpm.d/www.conf"
listen = /var/run/php-fpm.sock
listen.owner = www
listen.group = www
env[PATH] = /usr/local/bin:/usr/bin:/bin
i changed "listen = (ip address) to /var/run/php-fpm.sock "
i have no idea what to do with
listen.owner = www
listen.group = www
env[PATH] = /usr/local/bin:/usr/bin:/bin
Because the dependencies for the Nextcloud package are php56 and the linked tutorial shows how to install with php7. There's a performance improvement by going with php7.NextCloud 12.02 is in FreeNAS 11 and it pulls all the php stuff needed. Not sure why people are still using that old article.
Because the dependencies for the Nextcloud package are php56 and the linked tutorial shows how to install with php7. There's a performance improvement by going with php7.
i see, well ill give what you posted a tryYup you are right. Just installed it from the repo.
pkg install apache24
pkg install php56 php56-mbstring php56-zlib php56-curl php56-gd php56-json mod_php56 php56-mcrypt *fix php.conf*
pkg install mysql56-client mysql56-server php56-mysqli *set up db stuff*
pkg install nextcloud *some fcukery*
Weird as hell that I had to use mysql56 and php56 stuff. Think that is from 2013? I mean who does that? Package something new like NextCloud with really old deps.
Im going to try this and let you know how this goes & i think that would be nice to update the current version of nextcloudThe "right way" to do this is more or less the way shown in that tutorial. I just got it up running using just binaries from the repos doing this.
pkg install apache24
sysrc apache24_enable="yes"
service apache24 start
pkg install php56 php56-mbstring php56-zlib php56-curl php56-gd php56-json mod_php56 php56-mcrypt
nano /usr/local/etc/apache24/Includes/php.conf
<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>
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini-production.bakup
ln -s /usr/local/etc/php.ini-production /usr/local/etc/php.ini
service apache24 restart
pkg install mysql56-client mysql56-server php56-mysqli
sysrc mysql_enable="yes"
service mysql-server start
mysql_secure_installation
Do Y to all and set a root pw
mysql -u root -p
CREATE DATABASE nextclouddb;
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON nextclouddb.* TO 'nextcloud'@'localhost';
FLUSH PRIVILEGES;
\q
pkg install nextcloud
read the install notes.
http://your-ip/nextcloud
I might repackaged NextCloud for FreeBSD 11 using newer stuff.
The "right way" to do this is more or less the way shown in that tutorial. I just got it up running using just binaries from the repos doing this.
pkg install apache24
sysrc apache24_enable="yes"
service apache24 start
pkg install php56 php56-mbstring php56-zlib php56-curl php56-gd php56-json mod_php56 php56-mcrypt
nano /usr/local/etc/apache24/Includes/php.conf
add this
<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>
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini-production.bakup
ln -s /usr/local/etc/php.ini-production /usr/local/etc/php.ini
service apache24 restart
pkg install mysql56-client mysql56-server php56-mysqli
sysrc mysql_enable="yes"
service mysql-server start
mysql_secure_installation
Do Y to all and set a root pw
mysql -u root -p
CREATE DATABASE nextclouddb;
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON nextclouddb.* TO 'nextcloud'@'localhost';
FLUSH PRIVILEGES;
\q
pkg install nextcloud
read the install notes. Perms where correct already. I added to httpd.conf
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
</Directory>
And restart Apache
http://your-ip/nextcloud
I might repackage NextCloud for FreeBSD 11 using php7+ and mariadb 10+
read the install notes. Perms where correct already. I added to httpd.conf ?????
ok!!!!!nano /usr/local/etc/apache24/httpd.conf
add this
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
</Directory>
When you enter http://yourIP/nextcloud you should get a nice web interface. Enter this for the database info. You can change it later.
user: nextcloud
pw: password
db: nextclouddb
localhost
Performing sanity check on apache24 configuration:nano /usr/local/etc/apache24/httpd.conf
add this
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
</Directory>
When you enter http://yourIP/nextcloud you should get a nice web interface. Enter this for the database info. You can change it later.
user: nextcloud
pw: password
db: nextclouddb
localhost