OwnCloud through Lighttpd Entware-NG

1 - Setup Entware-NG from this guide

2 - Install Lighttpd Web Server from this guide

3 - Install necessary packages:

opkg install bzip2 php5-mod-ctype php5-mod-curl php5-mod-dom php5-mod-fileinfo \
php5-mod-gd php5-mod-hash php5-mod-json php5-mod-mysql php5-mod-pdo php5-mod-pdo-sqlite \
php5-mod-session php5-mod-simplexml php5-mod-sqlite3 php5-mod-xml php5-mod-xmlwriter \
php5-mod-zip php5-mod-xmlreader php5-mod-mbstring

4 - Download and install latest version of OwnCloud

cd /opt/share/www
wget https://download.owncloud.org/community/owncloud-9.1.3.tar.bz2 --no-check-certificate
bzip2 -cd owncloud-9.1.3.tar.bz2 | tar -xv
rm ./owncloud-9.1.3.tar.bz2

5 - Modify lighttpd configuration file, just copy/paste all following lines in terminal

cat >> /opt/etc/lighttpd/lighttpd.conf << 'EOF'
$HTTP["url"] =~ "^/owncloud/data/" {
url.access-deny = ("")
}
$HTTP["url"] =~ "^/owncloud($|/)" {
dir-listing.activate = "disable"
}
EOF

Press Enter

6 - Increase upload max filesize, post max size and limit memory to 32Mb by modifying php configuration file

sed -i "/upload_max_filesize =*/cupload_max_filesize = 512M" "/opt/etc/php.ini"
sed -i "/post_max_size =*/cpost_max_size = 512M" "/opt/etc/php.ini"
sed -i "/memory_limit =*/cmemory_limit = 32M" "/opt/etc/php.ini"

7 - Restart Lighttpd

/opt/etc/init.d/S80lighttpd restart

8 - Now access owncloud through router default ip address and port 81 www.asusrouter.com:81/owncloud

owncloud-1

9 - Chose a username & a strong password, then press "Finish Setup"

owncloud-2

10 - Access OwnCloud from lanwan or https-lan, https-wan ip address

owncloud-files

If you need a professional cloud service, visit www.cloudwards.net and read recommendations

Source SNB

Thanks @ryzhov_al & @zyxmon

SUBSCRIBE

To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...