0

I have a Client with Magento 2.1.7, I need to success the Readiness Check so I can install extensions or upgrade Magento version...

All the checks are ok! It says to:

"Your PHP version is correct (7.0.33)"

but the Check Cron Scripts failed.

Error from Updater Application Cron Script:
Found non-writable path(s):
/var/www/vhosts/gevi/httpdocs/php.ini.sample

The file does even exist, and if I create it with permission 755 the problem is the same...

I think the problem is on CRON failing, in details:

When I run "php bin/magento setup:cron:run" to execute the CRON I got an error on the log:

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/gevi/httpdocs/vendor/magento/framework/Console/Cli.php on line 72

Seems that php code is incorrect? Incompatible between Magento version and PHP version? But it says version 7.0 is ok!

HELP!

error

13
  • can you share screenshot of error to get better idea about the error?
    – Mohit Rane
    Jul 19, 2019 at 5:06
  • added! the problem is that the cron wont run? Jul 19, 2019 at 10:38
  • can you tell me which commands are you using for changing php version?
    – Mohit Rane
    Jul 19, 2019 at 10:46
  • im not changing php version, its 7.0.33 right now Jul 19, 2019 at 10:52
  • you must have changed it before right? i'm saying this because it could be the reason for your error
    – Mohit Rane
    Jul 19, 2019 at 10:54

1 Answer 1

0

Just create Magento folder in your app/design/frontend and app/design/adminhtml, Most of the time it should solve the problem.

 cd <magento_root>
 find var generated vendor pub/static pub/media app/etc -type f -exec chmod u+w {} +
 find var generated vendor pub/static pub/media app/etc -type d -exec chmod u+w {} +
 chmod u+x bin/magento

Use this commands:

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

Hope it Helps.

23
  • I already have a Magento folder in app/design/frontend, I have to set some particular permission? Can you explain "can be solved by using root making www-data the owner and giving 775 to folders and files" are you referring to Magento folder? Thanks! Jul 18, 2019 at 14:03
  • please check updated answer
    – Mohit Rane
    Jul 19, 2019 at 5:02
  • "Operation not permitted", i'm in SSH through putty with the user of this subdomain but seems not root, can I operate via PLESK? Jul 19, 2019 at 9:27
  • using su -root I dont have root password and on PLESK seems not present root user (only admin) but via SSH su -admin says "admin not exist" :( Jul 19, 2019 at 10:39
  • any solution? :( Jul 22, 2019 at 9:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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