For experts only: Using the Apache webserver is the recommended way to install phpMyDomo, but if you prefer to use Lighttpd instead of Apache, you might try the following unsupported method.
As root:
apt-get update
apt-get install lighttpd php5-fpm php5 php5-curl
nano /etc/php5/fpm/php.ini
And change cgi.fix_pathinfo=0 to cgi.fix_pathinfo=1
Then restart php:
service php5-fpm restart
nano /etc/lighttpd/lighttpd.conf
Make sure the following modules are enabled (begin of the file). Disabled modules should be commented out. Other modules will be present. 'rewrite' and 'fastcgi' are required for phpMyDomo.
server.modules = (
"mod_fastcgi",
"mod_rewrite",
)
Add at the end of the file:
fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/var/run/php5-fpm.sock",
"broken-scriptfilename" => "enable"
))
)
The bellow configuration will redirect any request whose host begin by "domo" to phpMyDomo.
Add at the end of the file:
$HTTP["host"] =~ "domo\..*" {
server.document-root = "/var/www/domo/"
server.errorlog = "/var/log/lighttpd/domo.error.log"
accesslog.filename = "/var/log/lighttpd/domo.access.log"
index-file.names = ( "index.php")
url.rewrite-once = (
"^/controller\.php.*$" => "$0",
"^/static/.*$" => "$0",
"^/.+$" => "/controller.php$0"
)
}
Start Lighttpd:
service lighttpd start
Now you have to move the content of the phpMyDomo/www/ directory to the directory that you defined as "root" in the VirtualHost configuration, ie:
mv /tmp/phpMyDomo/www/* /var/www/domo/