Where php.ini on a snow leopard on a new installation

So, I have a line in http.conf that refers to PHP without commenting, and I have mysql installed, but where my php.ini file located for me points to mysql.sock.

+3
source share
2 answers

I'm not sure where yours is ... but you can use PHP to tell you where it is.

At the command prompt, type 'which php' --ini(note that the apostrophes should be reverse, SO formatting got me). If you don’t have whichand you know your way to PHP, just use <path to php> --ini.

+3
source

Make a file in your web court and save it:

<?php
phpinfo();

Then go to the page and it will tell you where it is.

, php.ini /etc

+2

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


All Articles