where is php.ini on snow leopard on a fresh install
So i have the line in the http.conf that relates to PHP uncommented out and i have mysql installed but where is my php.ini file located for me to po开发者_高级运维int to mysql.sock.
I'm not sure where yours is... but you can use PHP to tell you where it is.
On a command line, issue 'which php' --ini
(note those apostrophes should be backticks, SO formatting got me). If you don't have which
and know your path to PHP, just use <path to php> --ini
.
Make a file in your webroot and have it contain:
<?php
phpinfo();
Then visit the page and it should tell you where it is.
As far as I know, php.ini should be in /etc
精彩评论