1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Merge pull request #109 from Khan/to-upstream2

Add docs for using lighttpd as the webserver.
This commit is contained in:
Evan Priestley 2012-05-03 13:55:25 -07:00
commit c901f8389d
2 changed files with 33 additions and 2 deletions

View file

@ -171,6 +171,36 @@ For nginx, use a configuration like this:
}
}
= Webserver: Configuring lighttpd =
For lighttpd, add a section like this to your lighttpd.conf:
$HTTP["host"] =~ "phabricator(\.example\.com)?" {
server.document-root = "/path/to/phabricator/webroot"
url.rewrite-once = (
"^(/rsrc/.*)$" => "$1",
"^(/favicon.ico)$" => "$1",
# This simulates QSA ("query string append") mode in apache
"^(/[^?]*)\?(.*)" => "/index.php?__path__=$1&$2",
"^(/.*)$" => "/index.php?__path__=$1",
)
setenv.add-environment = (
"PHABRICATOR_ENV" => "custom/myconfig",
)
}
You should also ensure the following modules are listed in your
server.modules list:
mod_fastcgi
mod_rewrite
mod_setenv
Finally, you should run the following commands to enable php support:
$ sudo apt-get install php5-cgi # for ubuntu; other distros should be similar
$ sudo lighty-enable-mod fastcgi-php
= Setup =
Now, restart your webserver and navigate to whichever subdomain you set up. You

View file

@ -14,8 +14,9 @@ Phabricator is a LAMP application suite, so you basically need LAMP:
patches.) Phabricator has active contributors running it on Mac OS X, Amazon
Linux, Ubuntu, RHEL and CentOS; if you run into issues on other flavors,
send patches or complaints.
- **Apache** (or nginx): You need Apache (or nginx). You might be able to use
something else, but you're on your own.
- **Apache** (or nginx, or lighttpd): You need Apache (or another
tested webserver). You can probably use something else, but you're
on your own.
- **MySQL**: You need MySQL.
- **PHP**: You need PHP 5.2 or newer.