这是在一个全新的Ubuntu 14.04服务器上运行标准的WAMP安装与Apache DAV_SVN(使用LDAP身份validation)添加到它的顶部(映射到/svn )。 我能够正常工作,并通过HTTPtesting访问颠覆和通过LDAPvalidation,并没有问题。
然后,我进入/ etc / network / interfaces并将其从DHCP更改为使用静态IP地址(因此DNS服务器可以parsingSVN的主机名)。 我在服务器上执行了重新启动,之后任何尝试访问/svn导致500错误(在提供ldapauthentication凭证后) – 但只是正确访问/返回默认的apache页面。
但是,error.log中没有logging500错误,所以我无法debugging错误是什么。 我不知道是否错误是与LDAP通信凭证,与SVN,Apache或什么。
我能够确认回到DHCP允许SVN再次工作,但是我需要一个静态的IP,所以我可以使用SVN的主机名路由 – 使用一个dynamicIP的存储库将创build一个pipe理混乱。
error.log中
[Fri Feb 06 10:17:37.915182 2015] [mpm_prefork:notice] [pid 1090] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 10:17:37.915260 2015] [core:notice] [pid 1090] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 10:19:45.681937 2015] [mpm_prefork:notice] [pid 1090] AH00169: caught SIGTERM, shutting down [Fri Feb 06 10:19:46.786369 2015] [mpm_prefork:notice] [pid 1987] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 10:19:46.786434 2015] [core:notice] [pid 1987] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 10:19:48.285095 2015] [mpm_prefork:notice] [pid 1987] AH00169: caught SIGTERM, shutting down [Fri Feb 06 10:19:49.398153 2015] [mpm_prefork:notice] [pid 2074] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 10:19:49.398214 2015] [core:notice] [pid 2074] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 10:41:45.351303 2015] [mpm_prefork:notice] [pid 2074] AH00169: caught SIGTERM, shutting down [Fri Feb 06 10:41:46.517131 2015] [mpm_prefork:notice] [pid 3665] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 10:41:46.517209 2015] [core:notice] [pid 3665] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 10:42:41.050821 2015] [dav:error] [pid 3669] [client 192.168.12.162:59312] Could not fetch resource information. [301, #0] [Fri Feb 06 10:42:41.050932 2015] [dav:error] [pid 3669] [client 192.168.12.162:59312] Requests for a collection must have a trailing slash on the URI. [301, #175002] [Fri Feb 06 10:46:13.366128 2015] [mpm_prefork:notice] [pid 3665] AH00169: caught SIGTERM, shutting down [Fri Feb 06 10:46:14.514782 2015] [mpm_prefork:notice] [pid 3738] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 10:46:14.514837 2015] [core:notice] [pid 3738] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 10:56:37.258172 2015] [mpm_prefork:notice] [pid 3738] AH00169: caught SIGTERM, shutting down [Fri Feb 06 11:09:35.552252 2015] [mpm_prefork:notice] [pid 1526] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 11:09:35.558499 2015] [core:notice] [pid 1526] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 11:21:48.478383 2015] [mpm_prefork:notice] [pid 1526] AH00169: caught SIGTERM, shutting down [Fri Feb 06 11:22:06.006478 2015] [mpm_prefork:notice] [pid 1067] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 11:22:06.007231 2015] [core:notice] [pid 1067] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 06 11:41:32.208255 2015] [mpm_prefork:notice] [pid 1067] AH00169: caught SIGTERM, shutting down [Fri Feb 06 11:41:33.396579 2015] [mpm_prefork:notice] [pid 1392] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Fri Feb 06 11:41:33.396643 2015] [core:notice] [pid 1392] AH00094: Command line: '/usr/sbin/apache2'


有一个类似的问题已经发布在你的Stackoverflow上:
内部错误500 Apache
首先,正如你已经显示你的端口是活着的,并接受用户,但是导航到一个子目录不起作用。
我在CentOS上面临类似的问题,根工作http://somesite.com ,但当我去http://somesite.com/xyz ,它给了我一个500错误。
这是由于/ xyz文件夹的权限不足造成的,并且.htaccess / httpd.conf文件未正确设置:
<VirtualHost :80> ... Insert your permissions here </VirtualHost>
或者(如果您不希望公开访问此内容并将其限制为您select的IP):
<Directory /xyz> Options Follow Symlinks Order deny, allow # If you want it to be public, use Order Allow, Deny; and Deny from all #Allow from all Allow from {IP of your choosing} #If Allow from all is present, this is line is not necessary. </Directory>
解决你的httpd.conf / .htaccess文件,这是一个权限问题。 🙂
编辑:
此外,请确保如果您使用数据库来提供/ xyz上的内容,后端.php所使用的凭证是正确的,那么数据库错误可以在公共视图中隐藏,且内部错误为500。 (一个简单的方法来检查这是:apt-get安装lynx然后发出lynx http://127.0.0.1/svn )
只是想跟进并发布问题和解决scheme是什么。 基本上问题是,当我设置静态IP时,我没有分配本地DNS服务器,所以不能parsingLDAP服务器的主机名。 当它被设置为DHCP时,它正在使用DHCP分配的DNS很好。 该解决scheme只是将本地DNS服务器添加到/etc/network/interfaces ,然后一切正常。
我仍然不确定为什么没有为此生成错误日志条目。