Project

General

Profile

HowToInstallOnOSX » History » Revision 8

Revision 7 (Anonymous, 2012-08-11 10:42) → Revision 8/11 (sdmeyers, 2018-02-02 19:56)

h1. How to install on OSX 

 h2. Install lighttpd using homebrew: 

 # Make sure you have Xcode's command line tools installed, if not run <pre>xcode-select --install</pre> from the command line 

 # Install homebrew by running <pre>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</pre> from command line. 

 # Make sure homebrew is up to date by running <pre>brew update</pre> from command line. 

 # Now install lighttpd with <pre>brew install lighttpd</pre> from command line. 

 Upon completion homebrew will let you know the following important information: 

 <pre>Docroot is: /usr/local/var/www 

 The default port has been set in /usr/local/etc/lighttpd/lighttpd.conf to 8080 so that 
 lighttpd can run without sudo. 

 To have launchd start lighttpd now and restart at login: 
 brew services start lighttpd 
 Or, if you don't want/need a background service you can just run: 
 lighttpd -f /usr/local/etc/lighttpd/lighttpd.conf</pre> 

 Done! 

 h2. older instructions: 

 


 I've written up a small article on how to get 1.3.10 up and running on OSX 10.3. It can be found here: http://theexciter.com/articles/installing-lighttpd-on-osx 

 If you installing on OSX 10.4 Tiger then http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger is very helpful. If you aren't planning to use Rails scroll down to the section on LightTPD. 

 There is (since May 2005) a "fink":http://fink.sourceforge.net/ package on the "download page":http://lighttpd.net/download/ which saves compiling lighttpd. 


 If you are looking for an installer for *OSX 10.4 Tiger Intel or PowerPC* then http://www.netzallee.de/extra/lighttpd is the easiest way.