duan97689
2019-01-11 17:07
浏览 90
已采纳

当试图在IIS上全新的Grav安装上浏览index.php页面时,我只得到一个“http错误500”页面

I am trying to use Grav CMS (https://getgrav.org/) on a Windows Server 2012 R2 with IIS. I unzip the grav core package and have moved it to my folder named grav in the following location: C:\inetpub\wwwroot\

When i try to launch the site i get the following message to come up:

This page isn't working localhost is currently unable to handle this request. http error 500

If i add a couple of echo outputs in the index.php file then i do get those to appear until the following lines of code that never seem to run and may be what is causing my issue:

// Process the page
try {
    $grav->process();
} catch (\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => 
$e)));
    throw $e;
}

This part seems to be what is causing the page to not load which i dont understand why it is doing so. I can make additional pages and put php code into them and i can render the page without issues.

I am at a loss right now because i made sure all the php modules are enabled and php is installed. I also installed php for IIS and made sure i did the URL rewrite for the htaccess file to a web.config file per the instructions.

Thank you very much for the help.

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题