
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 =

#OWNCLOUD ORG INSTALL#
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.
