I created a new instance on digital ocean and installed laravel (via cloning a git repo I have worked on). I then configured the default config for nginx, but the site is not even remotely accessible.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/mfserver/public/;
index index.php index.html index.htm;
server_name IPADDRESS;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri $uri /index.php$is_args$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
The answer in the brwoser is: "SERVERIP is currently unable to handle this request."
The error I get is this in the error.log
PHP message: PHP Fatal error: require(): Failed opening required '/var/www/mfserver/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mfserver/bootstrap/autoload.php on line 17" while reading response header from upstream,$
tail - n 100 /var/log/nginx/error.logand give us that information. It should tell you what's wrong. The most common reason I see nginx fail with Laravel is because it's not owned bywww-data. - Josh/bootstrap/is the directory for core Laravel scripts that handle the response. I'm going to attempt an answer because I'm very sure what I said was true. - Josh