我在 http://localhost/zftutorial/public 上收到 500 错误

我在 http://localhost/zftutorial/public 上收到 500 错误

你好,我是 Zend 和 Lamp 的新手,我的软件:Zend Framework、Ubuntu10.04、Lamp。

我使用 Zend 工具创建了我的第一个 Zend 项目

(根据本教程 http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf

但当我去 http://localhost/zftutorial/public我收到 500 错误。

我的$目录-lzftutorial 的:

drwxr-xr-x 6 root root 4096 2010-06-01 23:54 application
drwxr-xr-x 2 root root 4096 2010-06-01 23:54 docs
drwxr-xr-x 3 root root 4096 2010-06-02 00:23 library
drwxr-xr-x 3 root root 4096 2010-06-02 00:00 nbproject
drwxr-xr-x 2 root root 4096 2010-06-01 23:54 public
drwxr-xr-x 4 root root 4096 2010-06-01 23:54 tests

我的:/etc/apache2/站点可用/默认

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

谢谢,

答案1

你能运行这个命令来了解为什么 apache 返回错误 500 然后去浏览同一个页面

tail -f /var/log/apache2/error.log

如果你有error_reporting(0)

相关内容