![]() (the '2>&1' and 'grep' elements just restrict the output of the command to useful information, i.e. You can find all the possible php.ini files using this:įind / -name php.ini 2>&1 | grep -v "denied" | grep -v "directory" If you are interested in what PHP is being used by the web server, only use the information gathered from a web page that uses the 'phpinfo()' function.įor example, on my system the versions reported by the two different methods were:įor the php.ini file path things were different, too: ![]() If you have a system that has multiple PHP installations (like mine did) the results you get from using the command line tools MAY BE different than what is actually used by the web server. This is rather old thread, but I would like to add a further clarification.
0 Comments
Leave a Reply. |