How can you find out what the PHP installation path is on a server?
On Windows the default path for the php. ini file is the Windows directory. If you're using the Apache webserver, php. ini is first searched in the Apaches install directory, e.g. c:\program files\apache group\apache .
/usr/bin/php. /usr/bin/php7. 0. /usr/bin/php7.
1. Type the following command, replacing [location] with the path to your PHP installation. 2. Typing php -v now shows the PHP version installed on your Windows system.
In your terminal run the following:
which php
http://unixhelp.ed.ac.uk/CGI/man-cgi?which
Running PHP's https://php.net/phpinfo should tell you more about the PHP that's currently running your scripts.
<?php phpinfo();
put this line into a file and run it on a browser.
In a command prompt, type
which php
whereis php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With