简体   繁体   English

使用apache 2.4和silverstripe 3.1.12的500 Internal Server Error

[英]500 Internal Server Error using apache 2.4 and silverstripe 3.1.12

I have installed silverstripe using composer 我已经使用作曲家安装了silverstripe

composer create-project silverstripe/installer /var/www/

When I go to local host I get "Internal Server Error". 当我转到本地主机时,出现“内部服务器错误”。 The apache2 error.log file gives me: apache2 error.log文件给我:

[Sat Apr 11 19:12:21.824829 2015] [core:error] [pid 3250] [client 127.0.0.1:58951] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. 

A friend suggested it might be a permissions issue, we tried 一位朋友建议说这可能是权限问题,我们尝试过

sudo chown -R www-data:www-data /var/www

Which didn't work. 哪个没有用。

Any ideas? 有任何想法吗? ps I'm new to web dev and have tried a few IRC channels for help. ps我是Web开发人员的新手,并尝试了一些IRC渠道寻求帮助。

There could be one of these 可能是其中之一

  1. a misconfigured .htaccess file (or VirtualHosts ) that causes recursive requests being made. 错误配置的.htaccess文件(或VirtualHosts ),导致进行递归请求。 Try this snippet for the respective file of yours. 尝试使用您的相应文件的此代码段。

     <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php/$1 [L,QSA] </IfModule> 
  2. wrong permissions. 错误的权限。 Try to set the permission set of *.php files to 0644 or 0755 尝试将*.php文件的权限集设置为06440755

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM