2016-06-09 106 views
0

服务器遇到内部错误,无法完成您的请求。服务器超载或CGI脚本中有错误。本地服务器的codeingniter主页中的服务器错误

上面的错误显示在主页上,我只是下载Sample CI项目并配置成包含SQL转储的本地主机(XAMPP服务器)移动。

但不排在本地主机的网站,我只是更改基本网址,如下所示:

$config['base_url'] = "http://".$_SERVER['SERVER_NAME']."/myproname/"; 

myproname在本地主机我的项目文件夹的名称。

+0

的基本设置,只要保持基本URL空白'$配置[ 'BASE_URL'] ='''并尝试运行'http:// localhost/Taxitogether /' –

+0

也可以尝试这种方式。 '$ config ['base_url'] ='http:// localhost/Taxitogether /';' –

+0

如果您添加了任何用于删除** index.php **的htaccess,而不是将配置变量更改为此“$ config ['index .php'] ='''并且确保你的php.ini文件中的mod_rewrite已经打开 –

回答

0

试试这个从这里

  • 步骤

    1. 下载Codeigniter 3application/config/config.php添加此

      $config['base_url'] = 'http://localhost/Taxitogether/'; 
      

      如果您Taxitogether项目是另一个文件夹中(例如:c:/XAMPP/htdocs/kama/Taxitogether),然后baseURL时宜是http://localhost/kama/Taxitogether/

    2. 检查数据库连接和.htaccess文件以及

    这是笨

  • +0

    @Karna检查这个 –