note that this installation will not cover ssl as i only use this in my local network. 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. web Nginx owncloud posted by Jamie Octo764 views ubuntu nginx owncloud ssh nginx owncloud ssh sudo su. 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. 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 ownCloud is a self-hosted open source file syncing and sharing option, from the Boston-based company of the same name. Next we have to create the options file /usr/local/etc/nginx/conf.d/options and paste: client_body_timeout 5s Say goodbye to slow VPN connections, unversioned documents attached to emails and shadow IT in public clouds of questionable security. Share public links shielded by passwords and expiration dates. Safely involve contacts outside your organization with select documents. Insert the following code to the new config: user www www Īccess_log /var/log/nginx-access.log main buffer=32k Give staff an easy, flexible and secure way to share files and folders. 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' FreeNAS supports Windows, macOS, and Unix clients. > 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 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. We will set up owncloud with mariadb and nginx in a freebsd 9 jail (base jail setup described here: ) mariadb
0 Comments
Leave a Reply. |