Run lighttpd as a Windows Service with AlwaysUp

How to Run lighttpd as a Windows Service with AlwaysUp

Ensure that your lighttpd Web Server starts when your PC boots and is always running, 24/7!

lighttpd is a small, efficient web server optimized for high performance environments.

To configure lighttpd with AlwaysUp 8.0 and later:

  1. Download, install and configure lighttpd, if necessary. We have deployed the all-in-one LightTPD for Windows package from the WLMP Project.

  2. Download and install AlwaysUp, if necessary.

  3. Start AlwaysUp.

  4. Select Application > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the lighttpd executable. Since we have used the WLMP installation, this is:

      C:\Program Files\LightTPD\LightTPD.exe

    • In the Arguments field, enter your arguments to lighttpd.exe. Here are the options available in version 1.4.30-4:

      Usage:
       (nothing)  trying to start in test mode with default settings
       -f <name>  filename of the config-file (default: 'conf/lighttpd.conf')
       -m <name>  module directory (default: 'modules')
       -p         print the parsed config-file in internal form, and exit
       -t         test the config-file, and exit
       -D         don't go to background (default: go to background)
       -v         show version
       -V         show compile-time features
       -h | -?    show this help
      
      It is important that to use the -D flag or lighttpd will not start properly as a service. And since we want to use a non-default configuration file, we specify its full path with the -f option. The entire line is:
      -D -f "C:\Lighty\lighty-port-9090.conf"
      Be sure to use quotes around paths with spaces!

    • In the Name field, enter the name that you will call the application in AlwaysUp. We have kept the default of LightTPD but you can specify another name if you like.

    lighttpd Windows Service: General Tab

  6. Click over to the Startup tab and check the Ensure that the Windows Networking components have started box. This informs AlwaysUp that lighttpd needs TCP/IP networking support to do its work.

    lighttpd Windows Service: Startup Tab

  7. Click the Save >> button. In a couple of seconds, an application called LightTPD will show up in the AlwaysUp window. It is not yet running though.

    lighttpd Windows Service: Created

  8. To start lighttpd from AlwaysUp, choose Application > Start "LightTPD". lighttpd will be running in the background but it should serve your web pages as expected:

    lighttpd Windows Service: Running

  9. That's it! Next time your computer boots, lighttpd will start up immediately, before anyone logs on. We encourage you to edit lighttpd in AlwaysUp and check out the many other settings that may be appropriate for your environment. (For example, since lighttpd is all about performance, you may want to boost its priority on the General tab.)



lighttpd not working properly as a Windows Service?

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your application. The AlwaysUp Event Log Messages page explains the more obscure messages.
  • Consult the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.
  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.1 New!

7.9 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!