apache passenger

First install packages:

- for Ubuntu:

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install apache2-dev

- for CentOS (good tutorial):

yum install curl-devel httpd-devel 

or

yum install curl-devel apache2-devel 

After install gem:

gem install passenger

And then successfully configurate it:

sudo passenger-install-apache2-module