【发布时间】:2017-10-05 02:59:16
【问题描述】:
对不起,我忘记了这里的基础知识。
我有我的 codeigniter 项目,我使用 wamp 在 localhost 中设置它。
数据库设置已正确设置。
这是我对 codeigniter 的设置;
在application/config
switch(ENVIRONMENT) {
case 'development' : $config['base_url'] = 'http://localhost:8080/'; break;
case 'testing': $config['base_url'] = 'http://160.16.204.159/'; break;
case 'production': $config['base_url'] = 'http://system.bnb-brams.com/'; break;
}
在application/public/index.php
define('ENVIRONMENT', 'development');
然后在我的 apache 的 httpd.conf 这是设置;
Listen 0.0.0.0:80
Listen [::0]:80
and
ServerName localhost:80
所有服务都在 wamp 上运行。
当我在 chrome 浏览器上加载它时,输入 http://localhost:8080/,它会说;
This site can’t be reached
localhost refused to connect.
Did you mean http://localhost-8080.com/?
Search Google for localhost 8080
ERR_CONNECTION_REFUSED
我完全忘记了如何在 codeigniter 和 wamp 中一起设置东西,我需要帮助。
【问题讨论】:
标签: php apache codeigniter wamp