When executing command from Magento root folder home/magento_ftp/www/:
php bin/magento setup:upgrade
error returns;
Could not open input file:magento
Magento 2.2.3 is on a Varnix server and /var folder has 777 permissions on the magento file owner. Also running magento setup:upgrade from within the bin does not work. Also tried to delete all files in /var.
magento file exists in /bin folder.
How can I see which prevents magento from running setup:upgrade?
Solved! Go to Solution.
Hello @infoscanto
It seems that bin/magento file doesn't have the right permissions. Please give permission and try again.
chmod u+x bin/magento
or
sudo chmod -R 0777 bin/magento
Hello @infoscanto
It seems that bin/magento file doesn't have the right permissions. Please give permission and try again.
chmod u+x bin/magento
or
sudo chmod -R 0777 bin/magento
I have tried your solution but it does not work for me as it shows me this error
SQLSTATE[HY000] [2002] No such file or director
when I type
sudo bin/magento setup:upgrade
Thanks in advance