Magento2 Installation – Could Not Open Input File: bin/magento

installationmagento2

I was able to run php bin/magento setup:static-content:deploy
command, but after changing the permissions of the folders this is giving error:

There is no directory in bin folder. I have just installed the fresh magento 2.3.

Please help me what I am missing or doing wrong.

Best Answer

Go to the root folder of your Magento project and run the following commands :

  1. sudo php bin/magento setup:upgrade
  2. sudo php bin/magento setup:di:compile
  3. php bin/magento setup:static-content:deploy -f
  4. sudo php bin/magento cache:clean
  5. sudo chmod -R 0777 pub var generated

file permission change by ssh and run below command

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
sudo chmod -R 0777 pub var generated