安装之后 ubuntu上index.php无法访问
同样的配置在windows上可以访问,放到ubuntu上的apache服务器中,index.php返回500错误?????服务器错误网站在检索 http://192.168.136.145/testWeb/index.php 时遇到错误。 该网站可能关闭进行维护或配置不正确。
检查了index.php发现这一行可能有问题,但是打印出的路径是正确的。。。
require_once BASEPATH.'core/CodeIgniter.php';
期望的输出是和windows上一样的
Welcome to CodeIgniter!The page you are looking at is being generated dynamically by CodeIgniter.
If you would like to edit this page you'll find it located at:
application/views/welcome_message.php
可能是服务器问题,本地服务器环境配置错误? Altair 发表于 2013-4-9 12:27 static/image/common/back.gif
可能是服务器问题,本地服务器环境配置错误?
放到ubuntu的虚拟机上去就不行了。。。。本地windows上可以跑起来 你先试试CI自带的welcome示例,看看行不行 Altair 发表于 2013-4-9 20:05 static/image/common/back.gif
你先试试CI自带的welcome示例,看看行不行
直接访问welcome.php, apache会提示下面的消息
You don't have permission to access /testWeb/application/views/welcome_message.php on this server. 没有执行权限 是不是权限的owner没有给对~ IvanCI 发表于 2013-4-10 13:31 static/image/common/back.gif
没有执行权限 是不是权限的owner没有给对~
应该是,百度一下 You don't have permission to access
很明显的问题了
nop2 发表于 2013-4-11 03:20 static/image/common/back.gif
You don't have permission to access
很明显的问题了
把application/views/welcome_message.php 从文件夹到文件都改为777后,可以直接访问welcome_message.php
现在不太明白,文件夹和文件到底要设置什么属性,才能访问(不能都是777吧),在windows上不用考虑这问题
直接访问testWeb/index.php,还是会出现
网站在检索 http://192.168.136.145/testWeb/index.php 时遇到错误。 该网站可能关闭进行维护或配置不正确。
这个错误提示 Altair 发表于 2013-4-10 18:30 static/image/common/back.gif
应该是,百度一下
已经把文件夹和文件都改为777后可以访问,但是直接访问index.php是不行的。。
页:
[1]
2