Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to setup Kayako server on a centOS 6.3 machines.. I installed nginx with php5.3 and other required stuff, everything is working. So I copied kayako files to:


and edited my virtual host as(full file):

server {
    listen       80;

    location /kayako {
        root   /var/www/nginx-default/;
        index  index.php;

Then when i use browser to hit my domain: it starts to download a file name "downlaod" and displays nothing.

and my error log file is blank..

Please tell me what is going wrong?

vi nginx.conf:

user              nginx;
worker_processes  4;

error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

pid        /var/run/;

events {
    worker_connections  1024;
http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  2;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
share|improve this question
Nothing to serve PHP files: php-fpm, spawn-fcgi, ...? – quanta Aug 9 '12 at 15:22
up vote 1 down vote accepted

You need to setup PHP-FPM and start daemon.

Then add proper server and PHP sections to nginx configuration (very short example of PHP section):

location ~ \.php$ {

Other examples you may find on

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.