我搭建了两个项目,在httpd.conf中加了两个virtualhost 其中一个是可以成功的,另一个的入口文件也是正确的,但就是会出现500错误,代码应该是没有问题的,因为这些代码其他人也在用。我先发一下log中的内容
error.log[Thu May 05 17:23:27 2011] [notice] Digest: generating secret for digest authentication ...
[Thu May 05 17:23:27 2011] [notice] Digest: done
[Thu May 05 17:23:28 2011] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu May 05 17:23:28 2011] [notice] Server built: Nov 11 2009 14:29:03
[Thu May 05 17:23:28 2011] [notice] Parent: Created child process 5188
[Thu May 05 17:23:32 2011] [notice] Digest: generating secret for digest authentication ...
[Thu May 05 17:23:32 2011] [notice] Digest: done
[Thu May 05 17:23:33 2011] [notice] Child 5188: Child process is running
[Thu May 05 17:23:33 2011] [notice] Child 5188: Acquired the start mutex.
[Thu May 05 17:23:33 2011] [notice] Child 5188: Starting 150 worker threads.
[Thu May 05 17:23:33 2011] [notice] Child 5188: Starting thread to listen on port 443.
[Thu May 05 17:23:33 2011] [notice] Child 5188: Starting thread to listen on port 443.
[Thu May 05 17:23:33 2011] [notice] Child 5188: Starting thread to listen on port 80.
[Thu May 05 17:23:33 2011] [notice] Child 5188: Starting thread to listen on port 80.access.log:127.0.0.1 - - [05/May/2011:17:23:33 +0800] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.16 Safari/534.30"
真是不知道怎么查下去了,难道还和其它一些配置文件有关系吗?

解决方案 »

  1.   

    和.htaccess文件的配置也有关系吗?这个我安装apache的时候没有动过
      

  2.   

    这个是项目中的.htaccess配置:# Turn on URL rewriting
    RewriteEngine On# Installation directory
    RewriteBase /RewriteRule ^(application|modules|system) - [F,L]# Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d# Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT,L]这个是/xampp/sqlite/.htaccessOrder deny,allow
    Deny from all还有一个是xampp/phpmyadmin/libraies/.htaccess# This folder does not require access over HTTP
    # (the following directive denies access by default)
    Order allow,deny
      

  3.   

    楼主是在APPLE机上建立的LAMP平台??
      

  4.   

    Order deny,allow
    Deny from all
    把Deny from all删除或改为:allow from all
    Order allow,deny改为:Order deny,allow这个。//允许全部
      

  5.   

    我是在VISTA上搭的xampp平台 改了下你说的这些配置,还是不行,还有一个项目也是在这个平台下搭建的就可以运行,不知道怎么搞的
      

  6.   

    httpd.conf 配置文件 <VirtualHost  * >怎么设置的
    同时每个对应<Directory    / >