我已经在我的 Raspberry Pi 上安装了 LAMP,然后我将 ZF2 项目上传到 /srv/www/。不幸的是,当我想从浏览器启动网站时出现内部服务器错误。
内部服务器错误
服务器遇到内部错误或配置错误,无法完成您的请求。
请联系服务器管理员 dan@danprotti.com 并告知他们错误发生的时间,以及您所做的任何可能导致错误的事情。
服务器错误日志中可能提供有关此错误的更多信息。Apache/2.2.22 (Debian) 服务器在 192.168.2.102 端口 80
该网站(必须在 Intranet/LAN 中运行)是 raspberrypi.goldfinger.com,我在 /ect/apache2/sites-available -> raspberrypi.goldfinger.com => 中有以下配置文件
<VirtualHost *:80>
ServerAdmin admin@mysite.com
ServerName raspberrypi.goldfinger.com
ServerAlias www.raspberrypi.goldfinger.com
DocumentRoot /srv/www/raspberrypi.goldfinger.com/goldfinger/public/
<Directory "/srv/www/raspberrypi.goldfinger.com/goldfinger/public">
DirectoryIndex index.php
AllowOverride all
AllowOverride Options
Options None
Order allow,deny
Allow from all
</Directory>
ErrorLog /srv/www/raspberrypi.goldfinger.com/goldfinger/public/log/error.log
CustomLog /srv/www/raspberrypi.goldfinger.com/goldfinger/public/access.log combined
</VirtualHost>
.htaccess 文件来自 ZF2 并且是:
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
我究竟做错了什么?
提前致谢