[TUTORIAL] LIGHTTPD web server with PHP support through Entware
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:
I'm facing a little problem here, after rebooting the router, S80lighttpd it's starting normally with all other apps in init.d folder (it's running in background) but I can't access the web site from lan or wan, if I restart with /opt/etc/init.d/S80lighttpd restart command, initiating to work fine, dunno why.
Solved temporary by adding this lines to /jffs/scripts/services-start
I'm facing a little problem here, after rebooting the router, S80lighttpd it's starting normally with all other apps in init.d folder (it's running in background) but I can't access the web site from lan or wan, if I restart with /opt/etc/init.d/S80lighttpd restart command, initiating to work fine, dunno why.
Solved temporary by adding this lines to /jffs/scripts/services-start
[/color][/color]
Anyone else is facing the same problem?
I had some similar issues with Entware and Minidlna (I was merely testing something). Seems to be a timing issue if starting some services too early through services-start, inserting a sleep command also resolved my issue.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
The Following User Says Thank You to RMerlin For This Useful Post:
TeHashX, RMerlin, can the /usr/sbin/httpd be a cause?
Think I'm not faced this trouble because I'm manually Ğmoveğ httpd from TCP80 port with my own scripts:
start() {
...
# Moving web interface to another port.
# You'll need it while using your own web-server on 80 port
/usr/bin/killall httpd
cd /www
/usr/sbin/httpd -p 65080 &
...
}
...
__________________
The Entware. A modern Optware replacement.
TeHashX, RMerlin, can the /usr/sbin/httpd be a cause?
Think I'm not faced this trouble because I'm manually Ğmoveğ httpd from TCP80 port with my own scripts:
The issue I encountered was with Minidlna (the Entware version), so I doubt it was related to httpd in any way. I was just testing service auto-starting through unslung at the time.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
Hello TeHashX!
Thanks for your nice how-to!
Do you think it's possible to install lighttpd on optware as well? I'm not ready yet for entware and would like to use this nice webserver which I know reasonable well from NSLU2...
Lighttpd is available on optware too, but probably you should make some minor changes to it
# ipkg install lighttpd
There is Cherokee Web Server tutorial that you may try, look at my signature.
Last edited by TeHashX; 02-02-2013 at 09:27 AM.
The Following User Says Thank You to TeHashX For This Useful Post: