CodeConnoisseur
CodeConnoisseur

Reputation: 1909

error: c:/wamp64 or PHP in PATH

I recently was working with composer and php and now when I try to access any one of my other files through localhost/foldername/file1.php etc, I receive the above error in the CMD. I uninstalled composer and deleted the environmental variable and restarted WAMP but I still cannot access folders in localhost. When I type in localhost it takes me to one particular folder found at C:\wamp64\www\Laravel. I know it has something to do with having PHP in my PATH but what does this mean? Please help me!

Upvotes: 1

Views: 10482

Answers (3)

Momar Thiam
Momar Thiam

Reputation: 1

Wampserver does not use, modify or require the PATH environment variable. Using a PATH on Wampserver or PHP version may be detrimental to the proper functioning of Wampserver.

Upvotes: 0

Ratana Dev
Ratana Dev

Reputation: 66

I meet the same problem on Wamp version 3.1.4_x64 with PHP version 7.2.10 and now it working for me!

It not need a path on a PHP version in the Windows PATH environment variable. So you must remove this path from your environment variable. And next step just Exit Wamp and open again!

I hope that my answer i'll help you. Good luck guys :)

Upvotes: 3

tim
tim

Reputation: 727

It sounds like you installed Laravel in your home directory. Look inside of your home directory with your file explorer, if you see an index.php or index.html rename this to anything other that index. For example change index.php to not_index.php and then try to visit you local host in a browser.

Side note, XAMPP is much more user friendly than WAMPP could ever hope to be.

Upvotes: 1

Related Questions