在Ubuntu中运行CodeIgniter项目

时间:2017-05-23 23:33:51

标签: php codeigniter ubuntu

我在Windows环境中的Codeigniter中有一个现有项目,我最近切换到Ubuntu,每当我从CodeIgniter输入“http://192.168.8.109/consultation/”或“http://localhost/consultation/”404时,就已经安装了LAMP堆栈出现。我认为问题在于它无法从项目中读取任何控制器。

1 个答案:

答案 0 :(得分:0)

试试这个,

is your localhost is working ? 
if not then you have to make an entry into hosts file.
open terminal with super user like this type ctrl + alt + t(terminal) and
type gedit /etc/hosts then enter 127.0.0.1 localhost
还会检查您的网址,例如http://localhost/dashboard/projectname