1 - Install Optware-NG from here
2 - Update optware-ng
ipkg update
ipkg upgrade
ipkg upgrade
3 - Install lighttpd
ipkg install lighttpd
4 - Change server port from 8081 to 81
sed -i 's/server.port = 8081/server.port = 81/g' "/opt/etc/lighttpd/lighttpd.conf"
5 - Start server
/opt/etc/init.d/S80lighttpd restart
6 - Go to 192.168.1.1:81 and if you see this page, the lighttpd web server is configured correctly
7 - Create php info page
cat >> /opt/share/www/info.php << EOF
<?php
phpinfo();
?>
EOF
<?php
phpinfo();
?>
EOF
Press ENTER
8 - Install PHP
ipkg install php php-fcgi
9 - Restart server
/opt/etc/init.d/S80lighttpd restart
10 - Go to 192.168.1.1:81/info.php and if you see this page, php is configured correctly
11 - Enable access from wan
nano /jffs/scripts/firewall-start
Paste this lines
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 81 -j ACCEPT
Save with CTRL-O / Enter / and exit with CTRL-X
Make script executable and apply rule
chmod a+rx /jffs/scripts/firewall-start
/jffs/scripts/firewall-start
/jffs/scripts/firewall-start
12 - Go to Port Forwarding page https://192.168.1.1/Advanced_VirtualServer_Content.asp and redirect port 80 to 81
Enjoy...
REVIEW (CLICK ON THE STARS TO RATE!)
4