Category: Installation

Q: In CakePHP 3, Nginx 500 internal server error

This is my Nginx config file:

server {
    listen   80;

    root /var/www/html
    index index.php index.html index.htm;

    server_name localhost;

    access_log /var/www/log/access.log;
    error_log /var/www/log/error.log;

    location / {
          try_files $uri $uri/ /index.html;                

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
          root html;

    # pass the PHP scripts to FastCGI server listening on
    location ~ \.php$ {
          try_files $uri =404;
          fastcgi_pass unix:/var/run/php5-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;


I can't get CakePHP working on Nginx (ubuntu 14.04), can someone help?

0 Answers

Version: 3



No answers yet!

The community needs your help!

Post your Answer

Created: 6 Oct '16

Last Reply: None

Replies: 0

Views: 2596

Votes: 0

Welcome to Aero Coding!

Aero Coding is a CakePHP-focused Q&A community for professional and enthusiast cake bakers. It's built and run by you as part of the community.

Join Now Tour

Download Cakephp

Start baking your own CakePHP application!

Cakephp All Versions