[Varnish](https://www.varnish-cache.org) is a web application
accelerator. Components like Windshaft use it to speed up serving tiles
via the Maps API.
```bash
sudo apt-get install varnish=2.1.5.1-cdb1 #or any version <3.x
```
Varnish should allow telnet access in order to work with CartoDB, so you need to edit the `/etc/default/varnish` file and in the `DAEMON_OPTS` variable remove the `-S /etc/varnish/secret \` line.
## Install Mapnik ##
## Install Mapnik ##
[Mapnik](http://mapnik.org) is an API for creating beautiful maps.
[Mapnik](http://mapnik.org) is an API for creating beautiful maps.
CartoDB uses Mapnik for creating and styling map tiles.
CartoDB uses Mapnik for creating and styling map tiles.
@ -459,8 +440,22 @@ node app.js development
sudo apt-get install imagemagick
sudo apt-get install imagemagick
```
```
## Optional installation
## Optional components
These are not strictly required to run CartoDB, but if you are installing CartoDB to do change something you might need them:
The following are not strictly required to run CartoDB:
### Varnish
[Varnish](https://www.varnish-cache.org) is a web application
accelerator. Components like Windshaft use it to speed up serving tiles
via the Maps API.
Add CartoDB Varnish PPA and install it:
```bash
sudo add-apt-repository ppa:cartodb/varnish
sudo apt-get install varnish=2.1.5.1-cdb1 #or any version <3.x
```
Varnish should allow telnet access in order to work with CartoDB, so you need to edit the `/etc/default/varnish` file and in the `DAEMON_OPTS` variable remove the `-S /etc/varnish/secret \` line.
### Raster import support
### Raster import support
Raster importer needs `raster2pgsql` to be in your path. You can check whether it's available by running `which raster2pgsql`. If it's not, you should link it: `$ sudo ln -s /usr/local/src/postgis-2.1.2/raster/loader/raster2pgsql /usr/bin/`.
Raster importer needs `raster2pgsql` to be in your path. You can check whether it's available by running `which raster2pgsql`. If it's not, you should link it: `$ sudo ln -s /usr/local/src/postgis-2.1.2/raster/loader/raster2pgsql /usr/bin/`.