私はデジタル海洋で新しいインスタンスを作成し、laravelをインストールしました(私が作業したgit repoのクローン作成を介して)。私はその後、nginxのデフォルト設定を構成しましたが、サイトにはリモートからアクセスできません。nginxの設定が機能しません
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;
}
}
brwoserの答えは、「SERVERIPは現在この要求を処理できません」。
私が手にエラーが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,$
'尾ですか - nは100は/ var/log/nginxの/ error.log'をし、私達にその情報を与えます。何が間違っているか教えてください。 nginxがLaravelに失敗する最も一般的な理由は、それが 'www-data'によって所有されていないからです。 – Josh
thats strange ..私はちょうどエラーメッセージを追加しました.....ブートストラップとは何が関係していますか? – sesc360
'/ bootstrap /'は応答を処理するコアLaravelスクリプト用のディレクトリです。私は私が言ったことが本当であると確信しているので、私は答えを試みるつもりです。 – Josh