How to install owncloud server into LEDE and overcome dynamic IP for remote access?

Recently I installed LEDE 17.01.2 on a TP-LINK Archer C7 1750 v2.0 router.

I want to set up an ownCloud server on that router. I found this site useful, but since it was written for OpenWRT, I am not sure if the provided solution still works for LEDE. Does it work? In the same site there is a link to another one which explains how to install onwCloud using only three steps. But one of the steps is a command for downloading a script that is no longer available. Is there another link to this script?

Finally, the last question. I want to access ownCloud server remotely, but my home IP is dynamic. How can I overcome this problem? I mean, is there any detailed answer?

owncloud works and is easy to setup using lighttpd but nextcloud is not working for dynamic ip use a ddns supported provider, you can find a module in luci for it

in lighttpd just enable php7-fpm and have these php7 packages installed

php7 7.1.9
php7-cgi php7-cli php7-fastcgi php7-fpm php7-mod-calendar php7-mod-ctype php7-mod-curl php7-mod-dom php7-mod-exif
php7-mod-fileinfo php7-mod-gd php7-mod-gettext php7-mod-gmp php7-mod-hash php7-mod-iconv php7-mod-intl php7-mod-json
php7-mod-mbstring php7-mod-mcrypt php7-mod-openssl php7-mod-pcntl php7-mod-pdo php7-mod-pdo-mysql php7-mod-pdo-sqlite
php7-mod-session php7-mod-shmop php7-mod-simplexml php7-mod-sockets php7-mod-sqlite3 php7-mod-sysvsem php7-mod-tokenizer
php7-mod-xml php7-mod-xmlreader php7-mod-xmlwriter php7-mod-zip
1 Like

Thank you, Lucize! But I am completely new to LEDE, ownCloud, web servers etc. Is there any step-by-step page/documentation that could help me performing these installations and setup?

firstoff but it needs to be run as root so better have lighttpd/uhttpd run on other port

opkg update
opkg install lighttpd-mod-fastcgi

edit /etc/lighttpd/conf.d/30-fastcgi.conf
find at the end the host and port entry, edit it like

fastcgi.server = (
  ".php" => ((
    "host" => "",
    "port" => "9000",
#    "docroot" => "/srv/www/servers/"

/etc/init.d/lighttpd restart

opkg install all the php7 mod I wrote earlyer
edit /etc/php7-fpm.d/www.conf

user= http
group = www-data
;listen = /var/run/php7-fpm.sock
listen =

/etc/init.d/php7-fpm restart

you can create a php info file to confirm lighttpd + php7-fpm is working

// Show all information, defaults to INFO_ALL

make sure owncloud folder has owner:group http:www-data
chown -R http:www-data /www/owncloud


I want to install owncloud + mysql server, how to do this procedure.

try with apache2 as now is fixed in trunk, you can find lots of examples and howto on internet

1 Like

I searched on the internet and did not find anything. Could you please show me an address?

try this example, install the alternative packages found on openwrt

first thank you for your help, I executed the recommendations on the official openwrt site:
also from the owncloud site, and I got this result:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.