0

ubuntu の php5-fpm+nginx サーバーに Symfony をインストールしようとしています。

/web/app_dev.php に入ると、エラーが表示されます:

Web デバッグ ツールバーの読み込み中にエラーが発生しました (404: 見つかりません)。

プロファイラーを開きますか?

プロファイラー (/web/app_dev.php/_profiler/0db7ac) に入ると、次のように表示されます。

入力ファイルが指定されていません。

サーバー構成ファイルに問題があることはわかっています。ここにあります:

 server {

            listen   80;

           # listen   [::]:80 ipv6only=on;

            root /home/marker/Projects/stereoshoots/www;

            access_log  /home/marker/Projects/stereoshoots/logs/access.log;

            server_name stereoshoots.local;

            index index.php index.html index.htm;





            location / {

                    autoindex  on;

    #                try_files $uri $uri/ @rewrite;

                    try_files $uri $uri/ /index.php;

            }

    #        location @rewrite {

    #                rewrite ^/(.*)$ /index.php?q=$1;

    #        }

            location ~* \.(jpg|jpeg|gif|css|png|js|ico|xml|txt)$ {

                access_log        off;

                expires           30d;

            }

            location = /favicon.ico {

                    return 204;

                    access_log     off;

                    log_not_found  off;

            }

            location ~ \.php$ {

                    fastcgi_pass unix:/var/run/php5-fpm.sock;

                    fastcgi_index index.php;

                    include fastcgi_params;

            }

            location ~ /\.ht {

                    deny all;

            }



    }

symfony を正しくインストールするには、何を編集すればよいですか?

ありがとう!

4

2 に答える 2

0

残っているのは、uriをに渡すことだけだと思いますindex.php

try_files $uri $uri/ /index.php$request_uri
于 2013-09-29T22:24:58.033 に答える