IIS-仅在重新加载2-3次后加载PHP页面

IIS-仅在重新加载2-3次后加载PHP页面,php,css,iis,fastcgi,windows-server-2016,Php,Css,Iis,Fastcgi,Windows Server 2016,所以我为我的私人游戏服务器设置了这个页面。我在运行windows server 2016的同一台专用服务器上托管游戏服务器和web。我使用IIS来托管网站。现在我面临一个问题,页面只有在重新加载2-3次后才会加载。在此之前,它返回HTTP错误500。加载页面后,我必须多次刷新才能加载每个内容。发生了什么事 页面->www.ram-sro.com Index.php <?php include("_incl/config.inc.php"); $sec = new Secur

所以我为我的私人游戏服务器设置了这个页面。我在运行windows server 2016的同一台专用服务器上托管游戏服务器和web。我使用IIS来托管网站。现在我面临一个问题,页面只有在重新加载2-3次后才会加载。在此之前,它返回HTTP错误500。加载页面后,我必须多次刷新才能加载每个内容。发生了什么事

页面->www.ram-sro.com

Index.php

<?php
    include("_incl/config.inc.php");
    $sec = new Security();
    $conf = new Config();
    $mssql = new mssql();
    $mssql->dbOpen($conf->accountDbName);
    $modDir = "mod/";
    $modExt = ".php";
    session_start();
?>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title><?php echo "$conf->siteName" ?></title>
        <link type="text/css" rel="stylesheet" media="all" href="css/style.css" />
        <link rel="shortcut icon" href="img/favicon.png" type="image/x-icon" />
        <meta name="description" content="<?php echo $conf->description; ?>" />
        <meta name="keywords" content="<?php echo $conf->keywords; ?>" />
        <script type="text/javascript">
            <!--
            function clearText(formfield){
                if (formfield.defaultValue==formfield.value) {
                    formfield.value = ""
                }
            }
            -->
        </script>
    </head>
    <body>
        <center>
            <div id="page-body">
                <div class="page-body topbox">
                    <div class="page-body blackspace"></div>
                    <div class="page-body topbox-content">
                        <div class="topbox-webtitle">
                        </div>
                        <div class="topbox-user">
                            <div class="social-networks">
                                <a href="<?php echo $conf->facebook;?>"><img src="img/fb-icon.png" width="40px" height="40px;" alt="Visit us at facebook!" /></a>
                                <a href="<?php echo $conf->twitter;?>"><img src="img/tw-icon.png" width="40px" height="40px;" alt="Visit us at twitter!" /></a>
                            </div>
                            <div class="form">  
                                <?php include($modDir."user".$modExt);?>
                            </div>
                        </div>

                    </div>
                </div>  
                <div class="page-body spacer"></div>
                <div class="page-body menubox">
                    <div class="menubox-content">
                        <div id="menubar">
                            <ul>
                                <?php
                                    include($modDir."menu".$modExt);
                                ?>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="page-body spacer"></div>
                <div class="page-body content">
                    <div class="page-body leftblock">
                        <?php 
                            include($modDir."page".$modExt);
                        ?>
                    </div>
                    <div class="page-body rightblock">
                        <?php
                            include($modDir."social".$modExt);
                        ?>
                        <div class="page-body spacer"></div>
                        <div class="page-body info">
                            <?php
                                include($modDir."info".$modExt);
                            ?>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </center>
    </body>
</html>

函数googleTranslateElementInit(){
新的google.translate.TranslateElement({pageLanguage:'en',布局:google.translate.TranslateElement.InlineLayout.SIMPLE},'google_translate_element');
}