Answer the question
In order to leave comments, you need to log in
Why is it impossible to raise a symphony site on VDS with Debian+Vesta+nginx+php-fpm?
I went into a dead corner, I just can’t transfer the symphony3 project to the server
, I tried different configurations, I run into an error 500 that is not logged
and I don’t know where to move next
, could you tell me how to set up the ngnix configs so that it’s cursed all the same, it’s earned
Dano:
VPS on the digital ocean (bare system)
I install Vestacp (nginx + php-fpm) with their installer
, as a result I get a working server with this config
server {
listen хх.хх.186.154:80;
server_name мойдомен.com www.tмойдомен.com;
root /home/admin/web/мойдомен.com/public_html;
index index.php index.html index.htm;
error_log /var/log/nginx/domains/мойдомен.com.error.log error;
location / {
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
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/мойдомен/document_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /vstats/ {
alias /home/admin/web/мойдомен.com/stats/;
include /home/admin/web/мойдомен.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.мойдомен.com.conf*;
}
./tmp
./web
./web/mydomain.com
./web/mydomain.com/private
./web/mydomain.com/stats
./web/mydomain.com/document_errors
./web/mydomain.com/document_errors/ 404.html
./web/mydomain.com/document_errors/50x.html
./web/mydomain.com/document_errors/403.html
./web/mydomain.com/logs
./web/mydomain.com/logs/mydomain. com.log
./web/mydomain.com/logs/mydomain.com.error.log
./web/mydomain.com/public_html
./web/mydomain.com/public_html/robots.txt
./web/mydomain.com/ public_html/index.php
./web/mydomain.com/public_shtml
./web/mydomain.com/public_shtml/index.html
./web/mydomain.com/public_shtml/robots.txt
./web/mydomain.com/cgi-bin
./conf
./conf/dns
./conf/dns/mydomain.com.db
./conf/mail
./conf/mail/mydomain.com
./conf/mail/ mydomain.com/fwd_only
./conf/mail/mydomain.com/dkim.pem
./conf/mail/mydomain.com/antivirus
./conf/mail/mydomain.com/aliases
./conf/mail/mydomain.com/ antispam
./conf/mail/mydomain.com/passwd
./conf/web
./conf/web/nginx.conf
./.profile
Answer the question
In order to leave comments, you need to log in
500 error is a php error, it should be logged in any case, look here
/var/log/nginx/domains/mydomain.com.error.log
If it is empty, then enable the additional php-fpm log.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question