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;


    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:

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: