0

Running Magento 2.1.6 and after going through many other problems this I hope is the last one. When I attempt to run //update/cron.php in ssh I get permission denied, this don't natter if I am using root or web user access. I've followed the steps as per Magento documentation for directory permissions but problem still remains. I believe this is what is making the cron check fail on readiness check on extension installations.

Is there a way to get this command run?

3
  • Can you write which exact command you run.
    – user52581
    Apr 15 '17 at 2:25
  • From the Magento root i run /update/cron.php and it brings up the permission denied. Other commands work just fine. Apr 15 '17 at 9:07
  • Try this command from magento root bin/magento cron:run Apr 15 '17 at 9:13
0

this is because your file is not executable, even if it was executable anyway it must be run with php:

[root@server public_html]# update/cron.php
-bash: update/cron.php: Permission denied

[root@server public_html]# php update/cron.php
update-cron: Please check var/log/update.log for execution summary.

[root@server public_html]# su {php_user} -s /bin/bash -c "php update/cron.php"
update-cron: Please check var/log/update.log for execution summary.

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.