2017-02-24 10 views
7

私はすでに実行禁断403 - Laravel 4

403 nginxの/ 1.11.9

を取得保管:sudo composer update

私は適切な設定だと思いますパーミッション。

-rwxrwxrwx 1 root root 149 Feb 24 03:45 .gitignore 
-rwxrwxrwx 1 root root  12 Feb 24 03:45 .gitattributes 
-rwxrwxrwx 1 root root 146 Feb 24 03:45 CONTRIBUTING.md 
drwxrwxrwx 15 root root 4096 Feb 24 03:45 app 
-rwxrwxrwx 1 root root 567 Feb 24 03:45 phpunit.xml 
drwxrwxrwx 2 root root 4096 Feb 24 03:45 bootstrap 
-rwxrwxrwx 1 root root 2452 Feb 24 03:45 artisan 
drwxrwxrwx 19 root root 4096 Feb 24 03:45 public 
-rwxrwxrwx 1 root root 519 Feb 24 03:45 server.php 
-rwxrwxrwx 1 root root  0 Feb 24 03:45 satisfiable 
-rwxrwxrwx 1 root root 1599 Feb 24 03:45 readme.md 
drwxr-xr-x 5 root root 4096 Feb 24 03:55 .. 
-rwxrwxrwx 1 root root 992 Feb 24 14:53 composer.json 
-rw-r--r-- 1 root root 116004 Feb 24 14:53 composer.lock 
drwxrwxrwx 6 root root 4096 Feb 24 14:53 . 
drwxrwxrwx 27 root root 4096 Feb 24 14:53 vendor 

他に何か調べる必要がありますか?


のps補助|グレップのnginxの

root  12792 0.0 0.1 148960 1504 ?  Ss Feb24 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; 
forge 12793 0.0 0.4 148960 4840 ?  S Feb24 0:00 nginx: worker process 
root  26625 0.0 0.1 12952 1032 pts/0 S+ 15:10 0:00 grep --color=auto nginx 
+0

nginxのユーザーは? 'ps aux | grep nginx' –

+0

@FarhadFarahi:遅く返事をして申し訳ありません、わかりやすさのために投稿に結果を追加しました。 – ihue

+0

@FarhadFarahi:私の「偽造」ユーザーが間違っているということですか? – ihue

答えて

3

私は

ルート/ホーム/鍛造/販売代理店-アプリケーション/ laravelとしてそれを持っていました。私は

ルート/ホーム/鍛造/販売代理店-アプリケーション/ laravel /公衆にそれを更新

最終的な外観

server { 
    listen 80 default_server; 
    listen [::]:80 default_server; 
    server_name default; 
    root /home/forge/distributor-application/laravel/public; 
    ... 
} 

私のサイトはすぐに戻ってロードしています。

3

は、以下のことを試してみてください。

chown -R forge:forge /path/to/web/root 
+0

それは私の問題を解決していません。試してくれてありがとう。私は誤ったドキュメントルートセットを持っていました。 – ihue