Run Kohana framework+php script in linux command prompt
We have a ubuntu server where we dump our Kohana framework+php code & want to run it through cron job. But when we try it in command line it shows the following error:
root@andola-dev:~# php /var/www/realradius/index.php /var/www/realradius/system/core/Bootstrap.php
Warning: require(/root/system/core/Boots开发者_StackOverflow中文版trap.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
Linux filesystems are case sensitive, windows ones are not. Bootstrap.php
is usually lowercase. Try fixing that.
精彩评论