Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Common install paths for PHP on Windows

Tags:

php

I'm building a setup process that needs to know where PHP (php-win.exe) is installed on Windows. It asks the user for the location, but ideally it will test a few obvious locations first.

Obvious install paths include:

  • C:/Program Files/PHP
  • C:/wamp/bin/php/version/

Does anyone have either a list or more suggestions?

[this is being used by a command line tool as opposed to an installer which would make it easy just to select the folder].

like image 803
Christopher Padfield Avatar asked Feb 26 '26 03:02

Christopher Padfield


1 Answers

The most common path I've seen for PHP on Windows is:

C:\php

If you're checking for wamp you could also check for xampp.

like image 94
ServerBloke Avatar answered Feb 27 '26 20:02

ServerBloke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!