Server Configuration

This page describes several ways you can setup a web server to run TomahawkPHP. Some of the information has been taken from the Symfony docs.

When using Apache as your web server, you can configure PHP as an Apache module. or with FastCGI using PHP-FPM. FastCGI also is the preferred way to use PHP with Nginx.

Apache

Apache with mod_php/PHP-CGI

The minimum configuration to get your application running under Apache is:

Nginx

Nginx with PHP-FPM

The minimum configuration to get your application running under Nginx is:

Depending on how you've setup PHP-FPM, the fastcgi_pass can also be fastcgi_pass 127.0.0.1:9000.