Cant get Mautic installed.

This is the error every time. no matter which way i install. same thing.



The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.

System administrators, check server logs for errors.

This is the error every time. no matter which way i install. same thing.

The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.
System administrators, check server logs for errors.

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

root /var/www/html/mautic;

index index.php index.html index.htm index.nginx-debian.html;

location / {

try to serve file directly, fallback to app.php

try_files $uri /index.php$is_args$args;
}

location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

location ~* ^/index.php {

try_files $uri =404;

fastcgi_split_path_info ^(.+.php)(/.+)$;

NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
}

@MxyzptlkFishStix is correct.

Most of the time, ensuring the Mautic directories and files are owned by the user the web server (Apache or Nginx) runs as does the trick. You can check which user Nginx is running as using the following command:

ps -ef | grep nginx

I suggest following these instructions on ServerFault to set your Nginx user to www:www .

Then, you can use the following command to make your web directory owned by the Nginx user:

chown -R www:www /var/www/html/mautic