Book Image

Lighttpd

By : Andre Bogus
Book Image

Lighttpd

By: Andre Bogus

Overview of this book

Table of Contents (20 chapters)
Lighttpd
Credits
About the Author
About the Reviewer
Preface
HTTP Status Codes

MySQL based Virtual Hosting


To have the freedom to put our sites up anywhere we want, we can use mod_mysqlvhost. This module reads the document root for a domain from a MySQL database table and will thus need a running MySQL server. mod_mysqlvhost gives the maximum flexibility, usually at a small performance cost.

Many Web projects already use MySQL as a backend database, so the cost of running MySQL does not need to be taken into the calculation. For all other installations, the cost of running a MySQL server would probably not be worth the additional flexibility.

Installing MySQL

Note

If you already have a running MySQL, you can skip this section.

First, we need to download MySQL. The MySQL download site, available under http://www.mysql.com/downloads/mysql/, links to mirrors that have packages for almost all systems. To pick the optimal package source, here are my recommendations:

System

Recommendation

Windows

Download "Windows (x86) ZIP/Setup.EXE" from the MySQL download site. Run the...