Pregunta

I am using Magento 1.9.2.4 version and email not working I also set complete cron in my CPanel with .sh and .php but not working how can I resolved the issue.

php cron :- php -f /home/username/public_html/cron.php

sh cron :- sh /home/username/public_html/cron.sh
¿Fue útil?

Solución

Please follow the steps and check:

1) go to root .htaccess file and comment the below line.

<Files cron.php>

    #Order allow,deny
    #Deny from all

</Files>

2) go to your cpanel and set cron like below

*/5 * * * * wget -O - http://youdomain/cron.php >/dev/null 2>&1

Enjoy :)

Otros consejos

You dont need to add cron.php file in cronjob cpanel if you have add cron.sh file.

add below instead of yours sh line

bin/sh /home/username/public_html/cron.sh

Solution 2:

add https://www.magentocommerce.com/magento-connect/smtp-pro-email-free-custom-smtp-email.html this extension, in system ->config of this extension you get one setting so you can remove the order mail from the queue and send in real time

Go to system->configuration->Aschroder Extensions->Smtp pro-> Queue Configuration->Queue Usage set it to never and your order email goes directly

Cron job is an important component for correct Magento performance. It is widely used for running actions that are performed on schedule, such as indexing and caching, email dispatches, sitemap generation, currency rates updates, and many more actions as well.

Log in to the server via SSH. Run crontab -e command to add a cron task. At this point you will see a text editor, where you can add or edit cron tasks. Starting from a new line, add the following record:

*/5 * * * * sh /path/to/your/magento/site/root/cron.sh

Again, don’t forget to insert your own default folder path!

Save the changes and close the file. If you did everything correctly, crontab -l command will show you the newly created task.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top