Install TomatoCMS with lighttpd
From TomatoCMS Documentation
This guide show how to install TomatoCMS with Lighttpd on Windows.
Contents |
Install Lighttpd on Windows
- Download Lighttpd for Windows from [WLMP Project]
- Click on LightTPD-xxx-Win32-SSL.exe to install, where xxx is version of Lighttpd for Windows
Configure
I assume that you install LightTPD to folder C:\LightTPD. Open Lighttpd configuration file lighttpd-inc.conf in conf folder We're going to edit this file as follow:
- Set document root:
server.document-root = "C:\LightTPD\htdocs/"
- Enable mod_cgi module by uncommenting the # character at the beginning of line "mod_cgi":
server.modules = ( ... "mod_cgi", ... )
- Allows run PHP files by CGI (around line 240):
cgi.assign = ( ".php" => "C:/php_5.2.10/php-cgi.exe" ) #### CGI module #cgi.assign = ( ".php" => "PHP/php-cgi.exe", # ".pl" => "Perl/perl.exe", # ".cgi" => "Perl/perl.exe" ) #
where C:/php_5.2.10/php-cgi.exe is full path to your php-cgi. - If you want to run Lighttpd on different port than 80, set port number as value of server.port setting:
### I run Lighttpd on port 81 server.port = 81
Start Lighttpd
- Go to DOS command line window (By going to Start > Run > cmd.exe) - Go to Lighttpd installed folder:
C:\>cd C:\LightTPD
- Run following command:
LightTPD.exe -f conf\lighttpd-inc.conf -m lib\
Test Lighttpd
After starting Lighttpd, open your web browser and go to http://localhost:81/index.html (Note that I configured Lighttpd run on port 81). If you see LightTPD Test Page, congratulation!
Now, create new file named phpinfo.php with content as follow:
<?php phpinfo(); ?>
Put this file to C:\LightTPD\htdocs and point your browser to http://localhost:81/phpinfo.php. The result inform you that you have just configured PHP successfully.
Install TomatoCMS
- Download TomatoCMS from [Official website]
- Unzip TomatoCMS into C:\LightTPD\htdocs folder
- Open the web browser and go to http://localhost:81/tomatocms/index.php
Now, you can install TomatoCMS by following the steps provided by Install Wizard.
If you installed TomatoCMS with Lighttpd on other operating systems, please include your experience to this page.


