0

I have installed Magento 2.2.5 on my localhost windows system. I use the 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 the magento2 folder using system property still it doesn't work. Please suggest me a way out.

0

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

0

I think you are running and using the command in the 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
2
  • 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. Jan 13 '19 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 '19 at 3:52

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.