nagenxがlaravelで動作するように多くの設定を試しましたが、どれも実行していません。私は私のウェブページ上で500のエラーを取得し続けます。nginxで使用するとLaravel 500エラーが発生する
example.comは現在このリクエストを処理できません。
server {
listen _:80;
server_name example.com;
root "C:\Users\Administrator\Google Drive\projects\laravel";
index index.php index.html;
log_not_found off;
charset utf-8;
access_log logs/cdn.example.com-access.log ;
location ~ /\. {deny all;}
location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}
location/{
include mime.types;
}
location = /favicon.ico {
}
location = /robots.txt {
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9054;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
私はnginxのにlaravelと新しいのソートするために、新しいきれいなブランドです、私はちょうど私のhttp://localhost:8000開発サーバーから移動ドキュメントルートにすべての私のlaravelファイルを持っています。どのように私はそれを生きて、nginxで動作させることができますか?
** example.com **となっていますか? – Oli
グーグル「Laravel 500 error code」がここにあります。原因の1つの可能性は、PHPのバージョンです。私の場合、PHP 5.3を実行している古いサーバーがあり、Laravelをインストールしようとしました。 – Chandrew