A - For Mipsel devices setup Entware from this guide (see youtube video here)
B - For Arm devices setup Entware-Arm from this guide
Paste this commands in terminal:
/opt/etc/init.d/S80lighttpd stop
mkdir -p /opt/etc/lighttpd/conf.d
opkg install wget
rm /opt/etc/lighttpd/conf.d/*
wget -c -O /opt/etc/lighttpd/conf.d/99-rtorrent-fastcgi-scgi-auth.conf https://bit.ly/2LFoKtE
wget -c -O /opt/share/www/index.html https://bit.ly/2kZektt
sed -i "/server.upload-dirs*/cserver.upload-dirs = ( \"/opt/tmp\" )" "/opt/etc/lighttpd/lighttpd.conf"
/opt/etc/init.d/S80lighttpd start
Go to 192.168.1.1:81 and if you see this page, the lighttpd web server is configured correctly
To verify if php is enabled, create an info script
Paste this code:
<?php
phpinfo();
?>
Save with CTRL-O / Enter / and exit with CTRL-X
Go to 192.168.1.1:81/info.php and if you see this page, the php-mod-fastcgi is configured correctly
TO ACCESS THE WEBSITE FROM WAN
--------------------------------------------------------------------------
Paste this lines
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 81 -j ACCEPT
Go to Port Forwarding page https://192.168.1.1/Advanced_VirtualServer_Content.asp and redirect port 80 to 81, after reboot you should have access from wan.
Video HERE...