How to get php installation path

How do you know which PHP installation path is on the server?

+4
source share
2 answers

In your terminal, do the following:

which php

http://unixhelp.ed.ac.uk/CGI/man-cgi?which

Running PHP https://php.net/phpinfo should tell you more about PHP, which is currently running your scripts.

<? phpinfo();
+6
source

At the command prompt, enter

which php

whereis php

+1
source

Source: https://habr.com/ru/post/1540435/


All Articles