May work out cheaper than other solutions such as Dropbox.If your server has a fast dedicated uplink, you should expect to see faster upload/download times as the connection will be just for you, rather than being shared with a number of other users who are syncing with Dropbox at the same time for example.ownCloud apps are available for Android and iOS, so you can also sync your files to your mobile devices too.A number of desktop clients are available to download for Windows, Mac and Linux, which can be downloaded from here.Files can be synced between devices just like Dropbox, Google Drive etc.This means you are in full control of the server your files are hosted on, which can be either a good or bad thing, depending on your situation. OwnCloud is a cloud storage application, but a key difference between ownCloud and the examples mentioned above is that rather than your files being stored on servers owned by Google, or Amazon Web Services in the case of Dropbox, ownCloud is hosted on your own server. You’ve probably heard of Dropbox, Google Drive, and maybe even Box, but there’s a newcomer to the cloud-based storage game. 19 Dec, 2013 How To and DIY 0 Comments 6 Votes An Introduction to ownCloud GRANT ALL PRIVILEGES ON owncloud.* TO IDENTIFIED BY 'password' įor more information, please refer to the documentation. Sed -i 's,^tmpdir.*,tmpdir = "/tmp",g' /etc/my.cnfĬreate user for web server and set its password:Ĭreate database for ownCloud and set privileges: Sed -i 's,^datadir.*,datadir = "/srv/mysql",g' /etc/my.cnf Opkg install mysql-server mariadb-client-extra php7-mod-pdo-mysql Install the recommended MySQL/MariaDB database: MariaDB is the ownCloud recommended database. It has no client synchronisation support, so other devices will not be able to synchronise with the data stored in an ownCloud SQLite database. However SQLite is only good for testing and lightweight single user setups. ![]() OwnCloud is installed with SQLite by default. etc/init.d/php7-fastcgi start activate PHP in nf Play around with memory_limit, I reduced the value form 8MB to 4MB … but maybe 50MB might be better with 64MB RAM. etc/php5/.ini should contains extension=.ini ![]() open_basedir= error_log = syslog doc_root = Opkg install php7-mod-mcrypt php7-mod-openssl php7-mod-fileinfo php7-mod-exifĬonfigure /etc/php.ini to our needs and change the doc_root to our www-root: Opkg install php7 php7-cgi php7-fastcgi php7-mod-json php7-mod-session php7-mod-zip libsqlite3 zoneinfo-core php7-mod-pdo php7-mod-pdo-sqlite php7-mod-ctype php7-mod-mbstring php7-mod-gd sqlite3-cli php7-mod-sqlite3 php7-mod-curl curl php7-mod-xml php7-mod-simplexml php7-mod-hash php7-mod-dom php7-mod-iconv php7-mod-xmlwriter php7-mod-xmlreader php7-mod-intl I am not sure if really all of these packages are necessary, but it seems so: ![]() etc/init.d/lighttpd start If <= 8MB flash: Get extroot To make sure the webserver is up after booting, insert this line into /etc/rc.local before “exit 0”: ( Insert how-to here)Įven if auto-mounting on startup works, it probably ends too late when the webserver tries to start. Get fstab to auto-mount the usb-stick on startup, otherwise your webserver won't come up and you have to start it after mounting manually. Mount -t ext4 /dev/sda1 /mnt/sda1 -o rw,sync It helps to list /dev with the USB-device and without - in this case its /dev/sda1. ![]() Opkg install kmod-usb-storage kmod-usb-storage-extras block-mount kmod-fs-ext4 kmod-scsi-genericįigure out which device is your USB-stick/drive and mount it. If you see messages like “unresolved symbol usb_calc_bus_time” try loading usbcore and then try ehci-hcd again: Install USB-support (this is for USB 2.0, see usb.essentials for USB 1.1 support) You have to run an update of the package-lists before you can install any software Have a look in the OpenWrt-Wiki at usb.essentials and usb.storage, and figure out what USB-mode your device is using (ohci or uhci) and know what filesystem is on your storage (here: ext4). So best both is done on some external storage because small routers don't have that much. OwnCloud is around 30 MB and you will like to store your data somewhere.
0 Comments
Leave a Reply. |