When I try to upgrade Magento 2 php bin/magento setup:upgrade
I get
I get
[Magento\Setup\Exception]
Can't run this operation: deployment configuration is absent. Run 'magento setup:config:set --help' for options. setup:upgrade[--keep-generated] [--magento-init-params="..."]
How to fix it? Updating using the web updater gives the following errors:
I asked my hosting provider to fix them and they did install the right php version 5.6 and all extensions recommended by magento and created a cron job but I still see the error.
UPDATE: (from comments)
env.php
wasn't there, when I run magento setup:config:set
I get this error:
$ bin/magento setup:config:set
SQLSTATE[HY000] [2002] No such file or directory[InvalidArgumentException]
Parameter validation failed
<magento install dir>/app/etc/env.php
is present. That is the deployment configuration. If it's absent, run themagento setup:config:set
command again to create it.magento setup:config:set
i get this error pastebin.com/BDzxYGGUroot
; have you seen our MySQL setup instructions? Maybe try that and see if the command succeeds.