Add this to the bottom of your lighttpd.conf file:
$HTTP["url"] =~ "/\.(git|svn)/" {
url.access-deny = ( "" )
}
Add this to the bottom of your lighttpd.conf file:
$HTTP["url"] =~ "/\.(git|svn)/" {
url.access-deny = ( "" )
}
Install lighttpd:
sudo aptitude install lighttpd
Install PHP and ImageMagick:
sudo aptitude install php5-common php5-dev php5-mysql php5-sqlite php5-cgi php5-curl php5-gd php-pear libmagick9-dev
Install iMagick:
sudo pecl install imagick
Press enter on prompt.
Add the following to the bottom of /etc/php5/cgi/php.ini:
extension=imagick.so
Then:
sudo lighttpd-enable-mod fastcgi
sudo /etc/init.d/lighttpd reload
You will probably want to ensure that curl supports https before getting underway:
curl -V
Check that the output contains https:
>: curl -V
curl 7.19.2 (i386-apple-darwin9.5.0) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3
Protocols: tftp ftp telnet dict http file https ftps
Features: Largefile NTLM SSL libz
If it doesn’t:
sudo port deactivate curl
sudo port install curl +ssl
Once you have curl with https support:
sudo pecl install pecl_http
If you followed my previous howto, you’ll want to move the module to the location specified in your php.ini file:
sudo cp /opt/local/lib/php/extensions/no-debug-non-zts-20060613/http.so /opt/local/lib/php/extensions
Restart lighttpd and then you’ll be good to go.