TeHashX
Very Senior Member
New site with updated guide
Works only on Merlin's firmware because /jffs partititon is required for Entware environment
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3, may not work on FAT32 or NTFS.
First, setup Entware from this guide (see youtube video here)
Login to router with putty terminal and enter this commands:
Go to 192.168.1.1:81 and if you see this page, the lighttpd web server is configured correctly
Go to 192.168.1.1:81/test.php and if you see this page, the php-mod-fastcgi is configured correctly
TO ACCESS THE WEBSITE FROM WAN
--------------------------------------------------------------------------
Video HERE...
Works only on Merlin's firmware because /jffs partititon is required for Entware environment
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3, may not work on FAT32 or NTFS.
First, setup Entware from this guide (see youtube video here)
Login to router with putty terminal and enter this commands:
# opkg install lighttpd
# opkg install php5-cgi
# opkg install lighttpd-mod-fastcgi
# /opt/etc/init.d/S80lighttpd stop
# opkg install wget
# rm /opt/etc/lighttpd/lighttpd.conf
# /opt/bin/wget -c -O /opt/etc/lighttpd/lighttpd.conf http://tinyurl.com/amvkxt3 --no-check-certificate
# /opt/bin/wget -c -O /opt/share/www/index.html http://tinyurl.com/bxfxpq6 --no-check-certificate
# /opt/bin/wget -c -O /opt/share/www/test.php http://tinyurl.com/b9b34kp --no-check-certificate
# /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
Go to 192.168.1.1:81/test.php and if you see this page, the php-mod-fastcgi is configured correctly
TO ACCESS THE WEBSITE FROM WAN
--------------------------------------------------------------------------
and add this lines# opkg install nano
# nano /jffs/scripts/firewall-start
Save with CTRL-O / Enter / and exit with CTRL-X#!/bin/sh
iptables -I INPUT -p tcp --destination-port 81 -j ACCEPT
Go to Port Forwarding and redirect port 80 to 81, after reboot you should have access from wan.# chmod a+rx /jffs/scripts/firewall-start
Video HERE...
Last edited: