最近Xamppサーバーを更新し(1.7 >> 1.8から)、それ以降、Symfony1.4.8で記述されたプロジェクトを実行できなくなりました。
それは言う:
要求されたディレクトリにアクセスする権限がありません。インデックスドキュメントがないか、ディレクトリが読み取り保護されています。
しかし、それは許可を持っています!
実際には、古いバージョンのXamppで正常に動作します。Symfony1.4.8がApache2.4またはPHP5.4と互換性がない可能性はありますか?私はWindows8Enterpriseを使用していますが、Windows 7 Ultimateでもテストされており、同じ問題が存在します。
任意の提案をいただければ幸いです。
これが私の設定です:
NameVirtualHost 127.0.0.1:1111
Listen 127.0.0.1:1111
<VirtualHost 127.0.0.1:1111>
DocumentRoot "D:\AMir\PROJECTS\BarzinMehr\web"
DirectoryIndex index.php
<Directory "D:\AMir\PROJECTS\BarzinMehr\web">
AllowOverride All
Allow from All
</Directory>
Alias /sf C:\xampp\htdocs\symfony\data\web\sf
<Directory "C:\xampp\htdocs\symfony\data\web\sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
そしてここに私の.htaccessがあります
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>