Hide GIT or SVN files with lighttpd

Add this to the bottom of your lighttpd.conf file:

$HTTP["url"] =~ "/\.(git|svn)/" {
    url.access-deny = ( "" )
}
2009-02-20 [, ] No Comments

Quick lighttpd, PHP, iMagick setup on Ubuntu 8.10 Intrepid

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
2009-01-17 [, , , ] No Comments

Install pecl_http for PHP

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.

2008-11-24 [, , , , , , , ] No Comments