A
A
Alexander2017-01-17 21:56:01
PHP
Alexander, 2017-01-17 21:56:01

Can't set up nginx + php-fpm to work with Symphony?

Guys, please help.
I’ve been suffering for a week, I can’t set up
the VPSka server for digital ocean symphony
3 ,
I install Vesta with the help of the Advanced Install Settings installer
Vm65B7yHDRYaOr.png

server {
    listen      **.**.186.154:80;
    server_name mydomain.com www.mydomain.com;
    root        /home/admin/web/mydomain.com/public_html/web;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/mydomain.com.log combined;
    access_log  /var/log/nginx/domains/mydomain.com.bytes bytes;
    error_log   /var/log/nginx/domains/mydomain.com.error.log error;

    location / {

        try_files $uri /app.php$is_args$args;

        location ~ ^/app\.php(/|$) {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param DOCUMENT_ROOT $realpath_root;
            if (!-f $document_root$fastcgi_script_name) {
                return  404;
            }

            fastcgi_pass    127.0.0.1:9001;
            fastcgi_index   index.php;
            include         /etc/nginx/fastcgi_params;
        }
    }


    error_page  403 /error/404.html;
    error_page  404 /error/404.html;
    error_page  500 502 503 504 /error/50x.html;

    location /error/ {
        alias   /home/admin/web/mydomain.com/document_errors/;
    }

    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }

    location /vstats/ {
        alias   /home/admin/web/mydomain.com/stats/;
        include /home/admin/web/mydomain.com/stats/auth.conf*;
    }

    include     /etc/nginx/conf.d/phpmyadmin.inc*;
    include     /etc/nginx/conf.d/phppgadmin.inc*;
    include     /etc/nginx/conf.d/webmail.inc*;

    include     /home/admin/conf/web/nginx.mydomain.com.conf*;
}

approximately such a config turns out
and 500 error and the logs are not written
help pliz, I've been suffering for a week, I'm in the grip of despair :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
torf, 2017-01-25
@torf

Check permissions on var/logs/prod and var/logs/dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question