Code igniter php and Nginx with Internal Server Error 500

I trying config a nginx server on digital ocean, with a codeigniter application, but when i try access in browser only results error 500 Internal Server.

In /var/log/nginx/error.log nothing has reported.

What could it be?

nginx site-enable configuration file:

server {
    listen 80;
    listen [::]:80;

    root /home/deploy/acsaserver;

    index index.php;

    server_name imoveisacsa.com.br www.imoveisacsa.com.br;

    location / {
        try_files $uri $uri/ /index.php;    
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}


Read more here: https://stackoverflow.com/questions/65051981/code-igniter-php-and-nginx-with-internal-server-error-500

Content Attribution

This content was originally published by Lucas Siqueira at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: