这是一个非常菜鸟的问题。我基本上只是想运行 Silex 的“hello world”。我已经在我的目录中安装了 silex.phar 文件,设置 .htaccess 文件如下:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /projects/silex/ ###--> commented out because file is in root dir. <--##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
然后在 index.php 文件上运行这两行代码:
require_once __DIR__.'/silex.phar';
$app = new Silex\Application();
我收到 500 内部服务器错误。(“文件不存在”)
我在 Linux 上运行 php 5.3.8。
是否有我应该寻找的 PHP 设置?