

note that this installation will not cover ssl as i only use this in my local network. Give staff an easy, flexible and secure way to share files and folders. Savexit and make php-fpm autostart by adding php_fpm_enable=”YES” to the /etc/rc.conf and start it manually with > service php-fpm startĬreate the nginx config for owncloud. Now edit the php-fpm conf at /usr/local/etc/nf and be set the listen params as follows : listen =/var/run/php-fpm.sock You can find ownclouds requirements and recommendations here.
Freenas owncloud install#
Now install some extensions with: > portmaster lang/php55-extensions databases/php55-pdo_mysql To be save uncomment the session.save_path in the config. but first copy the template: > cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini Install it as always with portmaster > portmaster lang/php55Īfter that lets check the config. Log_format main '$remote_addr $host $remote_user "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $ssl_cipher $request_time' įinally create the sites dir > mkdir /usr/local/etc/nginx/sites Limit_req_zone $binary_remote_addr zone=gulag:1m rate=60r/m Next we have to create the options file /usr/local/etc/nginx/conf.d/options and paste: client_body_timeout 5s
Freenas owncloud code#
Insert the following code to the new config: user www www Īccess_log /var/log/nginx-access.log main buffer=32k next thing to do is move the original config and create a new one: > cd /usr/local/etc/nginx Now you should be able to see the default nginx page when surfing the systems ip. Now manually start it via > service nginx start In the config dialog check webdav support (and maybe more?). Install via portmaster > portmaster www/nginx

> GRANT ALL PRIVILEGES ON owncloud.* TO IDENTIFIED BY 'secret' > create user owncloud identified by 'secret' Setup root user > mysqladmin -u root passwordĬreate the owncloud database and user for later usage: > create database owncloud I picture setting up FreeNAS + ownCloud on this, which should hit both my criteria points above The most budget friendly and maybe easiest one, but doesn't give me access outside my LAN I already have a 4TB Red in my desktop, just get a second 4TB Red, Raid 1 them for redundancy, setup my desktop in the corner/closet headless and share the. Initializing the db data dirs with > cd /usr/local/ # mysql_install_db assumes its running from here to start it manually type > service mysql-server start Install mariadb via portmaster > portmaster databases/mariadb55-serverĮdit the rc.conf to enable autostart mariadb while booting > vi /etc/rc.confĪdd mysql_enable=”YES” and saveexit. The free-of-charge community edition can be used with up to five users and an unlimited number of guest users. We will set up owncloud with mariadb and nginx in a freebsd 9 jail (base jail setup described here: ) mariadb Introduction If you have a QNAP NAS, you will soon be able to install the ownCloud app from the App Center and enjoy a ready-to-use ownCloud.
