免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4898 | 回复: 0

我的软件安装程序install.php没有反应 [复制链接]

论坛徽章:
6
季节之章:冬
日期:2015-01-20 17:18:002015年辞旧岁徽章
日期:2015-03-03 16:54:15数据库技术版块每日发帖之星
日期:2015-12-20 06:20:00程序设计版块每日发帖之星
日期:2016-06-09 06:20:00每日论坛发贴之星
日期:2016-06-09 06:20:002016科比退役纪念章
日期:2017-01-12 14:08:57
发表于 2014-10-31 14:38 |显示全部楼层
本帖最后由 liklstar 于 2014-10-31 16:18 编辑

我的系统是ubuntu 12.04 apache mysql php;
我将所有程序都拷贝到/var/www目录下。在这个目录下的testphp.php运行正常,但我的软件安装程序install.php没有反应。即不出现404 not found错误,也不出现安装界面。

请问:这是为什么?有什么手段检查错误?

install.php :
<?php
var_dump("+++++++++++You enter the installation page!++++++++++";
require_once( dirname(__FILE__) . '/include/application.php');
header('Content-Type: text/html; charset=UTF-8;');
Session::Init();

$writeable['c'] = is_writable(dirname(__FILE__) . '/include/configure/');
$writeable['d'] = is_writable(dirname(__FILE__) . '/include/data/');
$writeable['t'] = is_writable(dirname(__FILE__) . '/static/team/');
$writeable['u'] = is_writable(dirname(__FILE__) . '/static/user/');

var_dump("configure directory iswriteable['c']";

$dbphp = dirname(__FILE__) . '/include/configure/db.php';
$systemphp = dirname(__FILE__) . '/include/configure/system.php';

if ( file_exists($dbphp) || file_exists($systemphp) ) {
        Session::Set('error', '最土团购系统已经安装,请不要重复安装,如需安装请删除 include\configure\system.php 和 include\configure\db.php');
}
... ...
这个程序的第一句话var_dump("+++++++++++You enter the installation page!++++++++++";就输出不了。相反,另一个程序
xyz.php:
<?php
var_dump("Now, You enter the installation page!";
$basedir=dirname(__FILE__);
echo $basedir;

就能完整地输出。

两个文件都是root:root;权限都是644。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP