Matt Elhotiby
Matt Elhotiby

Reputation: 44066

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 point to mysql.sock.

Upvotes: 3

Views: 1883

Answers (2)

sholsapp
sholsapp

Reputation: 16070

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.

Upvotes: 3

dsas
dsas

Reputation: 1660

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

Upvotes: 2

Related Questions