This is how-to install ownCloud to router. After then you'll get your own Dropbox-like service. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web.
Requirements: asuswrt-merlin firmware on board and a USB drive with Entware installation.
Install necessary packages:
Unpack ownCloud:
Add to the end of /opt/etc/lighttpd/lighttpd.conf:
Edit /opt/etc/php.ini:
Make ownCloud available from internet. Enable JFFS and fill /jffs/scripts/firewall-start with:
make it executable:
and reboot router. Point browser to…
…and create new account.
That's all! Have fun with web interface or client(s), available for most popular desktop/mobile platforms.
Requirements: asuswrt-merlin firmware on board and a USB drive with Entware installation.
Install necessary packages:
Code:
# opkg install \
bzip2 \
php5-cgi \
lighttpd-mod-fastcgi \
lighttpd-mod-access \
php5-mod-ctype \
php5-mod-curl \
php5-mod-dom \
php5-mod-fileinfo \
php5-mod-gd \
php5-mod-hash \
php5-mod-iconv \
php5-mod-json \
php5-mod-mbstring \
php5-mod-pdo \
php5-mod-pdo-sqlite \
php5-mod-session \
php5-mod-simplexml \
php5-mod-sqlite3 \
php5-mod-xml \
php5-mod-zip
Unpack ownCloud:
Code:
# cd /opt/share/www/
# wget http://download.owncloud.org/community/owncloud-5.0.0.tar.bz2
# bzip2 -cd owncloud-5.0.0.tar.bz2 | tar -xv
# rm ./owncloud-5.0.0.tar.bz2
Add to the end of /opt/etc/lighttpd/lighttpd.conf:
Code:
server.modules += ( "mod_fastcgi",
"mod_access"
)
fastcgi.server = (
".php" =>
( "localhost" =>
( "socket" => "/tmp/php-fcgi.sock",
"bin-path" => "/opt/bin/php-fcgi",
"max-procs" => 1,
"bin-environment" =>
( "PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "1000"
)
)
)
)
$HTTP["url"] =~ "^/owncloud/data/" {
url.access-deny = ("")
}
$HTTP["url"] =~ "^/owncloud($|/)" {
dir-listing.activate = "disable"
}
server.port = 81
Edit /opt/etc/php.ini:
Code:
upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 32M
Make ownCloud available from internet. Enable JFFS and fill /jffs/scripts/firewall-start with:
Code:
#!/bin/sh
/usr/sbin/iptables -I INPUT -p tcp --dport 81 -j ACCEPT
Code:
chmod +x /jffs/scripts/firewall-start
Code:
http://<ip address of router>:81/owncloud
That's all! Have fun with web interface or client(s), available for most popular desktop/mobile platforms.
Last edited: