0

Recently i setup a fresh install of Magento 1.9.2 upon configuring cron i get the following error when i try to execute

bash /path/to/my/magento/root/cron.sh

ERROR :cron.sh: line 26: $'\r': command not found

I also get the same result with:

php cron.php

I can't change the cron.sh to :

chmod -x cron.sh

because i am not part of sudo. My option is limited with cron.sh. I am using Webfaction hosting if this can be of any help.

Can anyone help me with this ? Thanks

1

From your stackoverflow question:

This is an encoding problem in the file's line endings, probably a result of the way you've deployed/installed the code.

Don't copy and paste file contents - upload the file as it ships with the fresh Magento installation using FTP or a git repository to deploy it.

See here and here (for example).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.