Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 404找不到页面。在ubuntu中找不到您请求的页面_Php_Codeigniter_Ubuntu 15.10 - Fatal编程技术网

Php 404找不到页面。在ubuntu中找不到您请求的页面

Php 404找不到页面。在ubuntu中找不到您请求的页面,php,codeigniter,ubuntu-15.10,Php,Codeigniter,Ubuntu 15.10,我遇到了一个我不理解的问题。我已经在windows中使用codeigniter 5个月了。现在我选择了ubuntu平台。我有一个名为test的项目,我把它放在我的webroot中。如果我在windows中运行它,它可以工作,但在ubuntu中不工作 显示404页面未找到您请求的页面未找到。我检查了配置文件,一切正常。 这是urlhttp://localhost/test/index.php/test_con。 我还检查了codeigniter在ubuntu中的安装是否成功 每当我写这个urlht

我遇到了一个我不理解的问题。我已经在windows中使用codeigniter 5个月了。现在我选择了ubuntu平台。我有一个名为test的项目,我把它放在我的webroot中。如果我在windows中运行它,它可以工作,但在ubuntu中不工作

显示404页面未找到您请求的页面未找到。我检查了配置文件,一切正常。 这是url
http://localhost/test/index.php/test_con
。 我还检查了codeigniter在ubuntu中的安装是否成功

每当我写这个url
http://localhost/test
它显示了codeigniter的欢迎信息


现在我的问题是,在ubuntu中运行codeigniter还有其他约定吗

你的Ubuntu安装中是否设置了PHP?你需要配置你的Apache虚拟主机(如果你正在使用Apache)@gabe3886我安装了xampp。所以必须有phpDoes xampp为Apache启用了mod_rewrite?如果你想删除url中的index.PHP,需要启用mod_rewrite。现在我不需要从url中删除index.PHP。