php - Cpanel cron jobs not working using magento? -
anyone please help me
domain: godaddy
hosting: vps server
name server: mns01.domaincontrol.com
name server: mns02.domaincontrol.com
below test case scenarios did , got result
for cron.php file gave permission 777
minutes hr day month weekday set * * * * *
test 1:
/home/domain/public_html/cron.php
result: /home/domain/public_html/cron.php: line 1: ?php: no such file or directory /home/domain/public_html/cron.php: line 2: syntax error near unexpected token `dirname' /home/domain/public_html/cron.php: line 2: `chdir(dirname(__file__));'
test 2:
/usr/bin/php -q /home/domain/public_html/cron.php
result: nil display
test 3:
php -q /home/domain/public_html/cron.php
result: nil display
test 4:
/usr/bin/php /home/domain/public_html/cron.php
result: x-powered-by: php/5.4.33 content-type: text/html
test 5:
get https://www.domain.com/cron.php
result: lwp back upwards https urls if lwp::protocol::https module installed.
test 6:
get http://www.domain.com/cron.php
result: nil display
test 7:
i replaced above test cron.php replaced cron.sh , tested. got same result.
test 8:
/home/domain/public_html/test.php
code: <?php echo "hello world";?> result: /home/domain/public_html/cron.php: line 1: ?php: no such file or directory hello world
you should using cron.sh
file on command line (not get
), , specify sh
path
/bin/sh /home/domain/public_html/cron.sh
php magento cron cpanel magento-1.8
No comments:
Post a Comment