0

I have installed Magento 2.2.5 on my loaclhost windows system. I use wamp server. I am unable to run any php command and getting the error Could not open input file: C:\wamp64\www\magento2

I got this

C:\wamp64\bin\php\php7.0.32>php  C:\wamp64\www\magento2 cache:flush
Could not open input file: C:\wamp64\www\magento2

I gave all permissions on magento2 folder using system property still it doesn't work. Please suggest me a way out.

0

I think you are running and using the command in a wrong way that's why you are getting the error.

Do this instead:

  • First, open cmd go to C:\wamp64\www\magento2 ( I suppose this is your magento2 installation directory)
  • From there, run the following commands below and check if you still get the errors you get before
    • php bin/magento cache:flush
  • Thank you for your response. using your recommended one,I got this " 'php' is not recognized as an internal or external command, operable program or batch file" C:\wamp64\bin\php\php7.0.32 - this the place where my php.exc file exists. – Magento Learner Jan 13 at 15:58
  • You need to add php to your PATH Environment Variable, Only after then you would be able to execute php command line from outside php_home. – fmsthird Jan 14 at 3:52
0

Finally It works for me. I just add my php installation file path in system user variable path.Closing and opening cmd and all of the commands works perfectly. My PHP installation path is C:\wamp64\bin\php\php7.0.32.

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.