Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Lighttpd web server with PHP support through Entware

Alexander Ryzhov edited this page Aug 26, 2015 · 20 revisions

First, setup Entware from this guide.

Login to router with a terminal like putty and enter this commands:

opkg install lighttpd php5-cgi lighttpd-mod-fastcgi
rm /opt/etc/lighttpd/lighttpd.conf
wget -c -O /opt/etc/lighttpd/lighttpd.conf http://tinyurl.com/amvkxt3 --no-check-certificate
wget -c -O /opt/share/www/index.html http://tinyurl.com/bxfxpq6 --no-check-certificate
wget -c -O /opt/share/www/test.php http://tinyurl.com/b9b34kp --no-check-certificate
/opt/etc/init.d/S80lighttpd start

Go to router.asus.com:81 and if you see this page, the lighttpd web server is configured correctly

if

Go to router.asus.com:81/test.php and if you see this page, the php-mod-fastcgi is configured correctly

php

###TO ACCESS THE WEBSITE FROM WAN

opkg install nano
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 nano with CTRL-X

Give right permission

chmod a+rx /jffs/scripts/firewall-start

Go to [router.asus.com/Advanced_VirtualServer_Content.asp](Port forwarding page) and redirect port 80 to 81, after reboot you should have access from wan.

wan

Youtube video here

Post issues here

Clone this wiki locally