Project

General

Profile

Updated wiki guide on installing on Windows with PHP: Full service support

Added by BrentNewland over 4 years ago

http://redmine.lighttpd.net/projects/1/wiki/TutorialLighttpdAndPHP#PHP-in-Fast-CGI-Mode

I recently had to set up Lighttpd on my personal machine, and finally managed to get Lighttpd and PHP to run as Windows services, with full start/stop/restart/status support. I added a section on doing that, and I also rewrote the instructions for installing Lighttpd and PHP using FastCGI, as well as the batch file startup.


Replies (2)

RE: Updated wiki guide on installing on Windows with PHP: Full service support - Added by wlmp over 4 years ago

There's also a bug in the Windows version that requires another edit in lighttpd.conf. Around line 50, change the following lines:

Actually, this is not a bug. You don't need to modify lighttpd.conf because the cygwin environment can't handle native windows style paths. If you define the path of the configuration file with slashes instead of backslashes the server will find another included config files under the same directory.

Wrong syntax:
lighttpd.exe -f conf\lighttpd.conf -m modules

Correct syntax:
lighttpd.exe -f conf/lighttpd.conf -m modules

Otherwise, many thanks for the tutorial.

RE: Updated wiki guide on installing on Windows with PHP: Full service support - Added by BrentNewland over 4 years ago

I did try with forward slashes and it didn't work. Could only get it to work with full path.

    (1-2/2)