Softaculous


Topic : Magento 1.9.1 cron.sh has wrong permissions


Posted By: chimark on December 30, 2014, 12:56 pm
Just upgraded to Magento 1.9.1.  The new version relies more heavily on the Magento cron job, so a number of functions were not working correctly.  Looks like the installer set the cron.sh file as not executable.  Simple chmod +x cron.sh fixes the problem.

Posted By: Brijesh on December 31, 2014, 7:17 am | Post: 1
Hi,

Sir by default the permission for files is 0644 and we do not set executable permissions for cron.sh because we setup the CRON job with cron.php in the magento package hence cron.sh is not used.

Let us know if you have any questions.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: chimark on January 25, 2015, 11:04 pm | Post: 2
Quote From : Brijesh December 31, 2014, 7:17 am
Hi,

Sir by default the permission for files is 0644 and we do not set executable permissions for cron.sh because we setup the CRON job with cron.php in the magento package hence cron.sh is not used.

Let us know if you have any questions.


Sorry, didn't get notified of your reply, so just saw this.  With 1.9.1, the following commands are in cron.php:
shell_exec("/bin/sh $baseDir/cron.sh $fileName -mdefault 1 > /dev/null 2>&1 &");
shell_exec("/bin/sh $baseDir/cron.sh $fileName -malways 1 > /dev/null 2>&1 &");

So, while cron.php is enabled to run, if cron.sh is not executable, these commands in cron.php fail.

Posted By: Brijesh on January 27, 2015, 10:35 am | Post: 3
Hi chimark,

Thank you for pointing towards this.

We are making the changes in our package to set the cron.sh executable.

We will update the package by tomorrow.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: Brijesh on January 28, 2015, 11:55 am | Post: 4
Hi,

We have launched the updated Magento package with the required changes.

You should get the update package via CRON.

Thank you for reporting the issue.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.