Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.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
Magento cronjob错误_Magento_Cron - Fatal编程技术网

Magento cronjob错误

Magento cronjob错误,magento,cron,Magento,Cron,我想给magento安排一份工作。 我的工作是: */5 * * * * /bin/sh /var/www/vhosts/#######/httpdocs/cron.sh >/dev/null 2>&1 这很好,但cron.sh给出了以下错误: PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on

我想给magento安排一份工作。 我的工作是:

*/5 * * * *  /bin/sh /var/www/vhosts/#######/httpdocs/cron.sh >/dev/null 2>&1
这很好,但cron.sh给出了以下错误:

PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.3.2-1ubuntu4.9. Rebuild it for your PHP version (5.3.2-1ubuntu4.14) or download precompiled binaries.
PHP Warning:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Warning:  realpath(): SAFE MODE Restriction in effect.  The script whose uid is 0 is not allowed to access /var/www/vhosts/########/httpdocs/app owned by uid 10001 in /var/www/vhosts/########/httpdocs/app/Mage.php on line 273
PHP Fatal error:  Uncaught exception 'Mage_Core_Exception' with message ' is not a directory or not readable by this user' in /var/www/vhosts/########/httpdocs/app/Mage.php:594
Stack trace:
#0 /var/www/vhosts/########/httpdocs/app/Mage.php(278): Mage::throwException(' is not a direc...')
#1 /var/www/vhosts/########/httpdocs/app/Mage.php(752): Mage::setRoot()
#2 /var/www/vhosts/########/httpdocs/cron.php(29): Mage::isInstalled()
#3 {main}
 thrown in /var/www/vhosts/########/httpdocs/app/Mage.php on line 594

删除了/etc/php5/cli/conf.d/mccript.ini(编号12)的第一行

每个加速器:

安全模式:只需评论安全模式或


app:file permission issue give-R 777删除了/etc/php5/cli/conf.d/mccript.ini(编号12)的第一行

每个加速器:

安全模式:只需评论安全模式或


app:file权限问题give-R 777

我替换了#的for;。警告消失了。还有其他问题。请指定问题,将尝试建议一切,除了“PHP不推荐”警告;我已经给了cron.sh和cron.php正确的权限。但是,当我注释save mode out时,一切都正常。thnx!我把#的换成了;。警告消失了。还有其他问题。请指定问题,将尝试建议一切,除了“PHP不推荐”警告;我已经给了cron.sh和cron.php正确的权限。但是,当我注释save mode out时,一切都正常。thnx!
This may help you

For reference :

https://bugs.launchpad.net/ubuntu/+source/php5/+bug/573436