What's new

[TUTORIAL] LIGHTTPD web server with PHP support through Entware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Do I understand things correct by saying that my RT-AC87 router can not use this guide to install Lighttpd?

Is there any way to get Lighttpd working on RT-AC87?
 
Do I understand things correct by saying that my RT-AC87 router can not use this guide to install Lighttpd?

Is there any way to get Lighttpd working on RT-AC87?
This is a entware guide witch arm devices doesn't support.
Lighttpd is available through optware instead http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable/

I will post a guide some day on asuswrt.eu, I don't own an arm device so I need to find someone to grant me access with team viewer app.
Anyway, you should install easily with this command:
Code:
ipkg install lighttpd
but without php support
 
I'm having problems starting the Lighttpd service...



Please help me to find out what's going on here. Bit of a novice when it comes to these things. I'm running Merlin's latest firmware.

That is NOT your lighttpd.conf file... Or if it is, then it explains why you get the error message.

Have a look here how it should look
http://redmine.lighttpd.net/projects/1/wiki/TutorialConfiguration

Looking a bit more on what you posted is seems as if is HTML code for a dropbox page for file sharing. I tried the dropbox link in the code but found no file.

Dropbox has changed something and cannot get the file right from https, I removed the file.

Updated links here https://www.asuswrt.eu/lighttpd-web-server-with-php-support-through-entware/
 
@TeHashX

OK, just returned here after having given up and noticed you had posted a solution. So I followed the instructions again on your website and Lighttpd is now working fine so thanks very much for your hard work in maintaining that site. It has some very useful instructions indeed. :)
 
@TeHashX

OK, just returned here after having given up and noticed you had posted a solution. So I followed the instructions again on your website and Lighttpd is now working fine so thanks very much for your hard work in maintaining that site. It has some very useful instructions indeed. :)
Thanks, you can leave a feedback any time on site.
 
Asus ac68u, asuswrt-merlin 378-55, entware arm
seems to start but runing code shows problem, browser returns 404 when using port "server.port" in lightpd.conf
Changing the port to 81,82 etc doesn't fix it, just makes page respond on different port


code
lighttpd -f /opt/etc/lighttpd/lighttpd.conf
2015-08-23 18:34:20: (network.c.409) can't bind to port: 3000 Address already in use

contents of /opt/etc/lighttpd/lighttpd.conf
server.document-root = "/var/www/servers/www.example.org/pages/"

server.port = 3000

mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
 
This is being a real stinker for me. I had it running until yesterday and then it quit responding, as if port 81 had been closed. I'm not really sure what would have produced that result.

Here is my lighttpd.conf file:

server.modules = (
)

server.document-root = "/opt/share/www"
server.upload-dirs = ( "/opt/tmp" )
server.errorlog = "/opt/var/log/lighttpd/error.log"
server.pid-file = "/opt/var/run/lighttpd.pid"
server.username = "http"
server.groupname = "www-data"

index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"index.lighttpd.html" )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

### Options that are useful but not always necessary:
server.chroot = "/"
server.port = 81
#server.bind = "localhost"
#server.tag = "lighttpd"
#server.errorlog-use-syslog = "enable"
#server.network-backend = "write"

### Use IPv6 if available
#include_shell "/opt/share/lighttpd/use-ipv6.pl"

#dir-listing.encoding = "utf-8"
#server.dir-listing = "enable"

include "/opt/etc/lighttpd/mime.conf"
include_shell "cat /opt/etc/lighttpd/conf.d/*.conf"​

I show the server starting successfully, I can ping the router and even get a response on port 81, it just isn't servng the pages.

I'm stuck. Been through several reinstallations and a day of tinkering with the conf file.

I end up with
This site can’t be reached
10.10.10.1 refused to connect.

UPDATE: Still broken but running a port scan on the router identifies that port 81 is not being opened for the webserver. Can someone point me in the right direction to fix this?
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top