在Linux命令提示符下运行Kohana框架+ php脚本

问题描述:

我们有一个ubuntu服务器,我们在这里转储我们的Kohana框架+ php代码&想通过cron工作来运行它。但是,当我们在命令行中尝试它时,它显示以下错误:在Linux命令提示符下运行Kohana框架+ php脚本

[email protected]:~# php /var/www/realradius/index.php /var/www/realradius/system/core/Bootstrap.php 

Warning: require(/root/system/core/Bootstrap.php): failed to open stream: No such file or directory in /var/www/realradius/index.php on line 139 

Fatal error: require(): Failed opening required '/root/system/core/Bootstrap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/realradius/index.php on line 139 
+0

'/ root/system/core/Bootstrap.php'和路径中的每个目录有什么权限? – sarnold 2011-04-15 07:22:20

+0

你的'system'目录和SYSPATH常量值是什么? – biakaveron 2011-04-15 09:01:15

+0

我假设你正在使用Kohana 3.看到Bootstrap.php和Kohaha中的大写字母很奇怪,所有的文件名都是小写。你修改了index.php吗? – gimpe 2011-06-14 02:35:29

Linux文件系统区分大小写,而windows文件系统不区分大小写。 Bootstrap.php通常是小写字母。尝试修复。