Connecting Tech Pros Worldwide Help | Site Map

php.ini file missing in OS X

Dell Sala
Guest
 
Posts: n/a
#1: Jul 16 '05
I have recently enabled the PHP 4.2.1 that comes pre-installed on OS
X. After making all the prescribed changes to the httpd.conf file php
seems to work fine.

I would like to make some changes to the php.ini file, but I can't
find it. phpinfo() tells me that it is in /usr/lib but don't see the
file there (or anywhere else). Even after creating my own php.ini file
in /usr/lib my changes aren't acknowledged on the phpinfo() page.

Suggestions?

Thanks.
CC Zona
Guest
 
Posts: n/a
#2: Jul 16 '05

re: php.ini file missing in OS X


In article <f2273b17.0307062108.2e1d87d1@posting.google.com >,
dellsala@yahoo.com (Dell Sala) wrote:
[color=blue]
> I would like to make some changes to the php.ini file, but I can't
> find it. phpinfo() tells me that it is in /usr/lib but don't see the
> file there (or anywhere else). Even after creating my own php.ini file
> in /usr/lib my changes aren't acknowledged on the phpinfo() page.[/color]

Did you restart Apache after installing the new php.ini file?

--
CC
David Robley
Guest
 
Posts: n/a
#3: Jul 16 '05

re: php.ini file missing in OS X


In article <f2273b17.0307062108.2e1d87d1@posting.google.com >,
dellsala@yahoo.com says...[color=blue]
> I have recently enabled the PHP 4.2.1 that comes pre-installed on OS
> X. After making all the prescribed changes to the httpd.conf file php
> seems to work fine.
>
> I would like to make some changes to the php.ini file, but I can't
> find it. phpinfo() tells me that it is in /usr/lib but don't see the
> file there (or anywhere else). Even after creating my own php.ini file
> in /usr/lib my changes aren't acknowledged on the phpinfo() page.
>
> Suggestions?
>
> Thanks.[/color]

The ini file location in phpinfo is the location where php will look for
the file; in many cases the install does not actually place an ini file
there and php uses internal defaults.

If you have placed a file in the specified location, remember that for an
Apache DSO site you need to restart apache to force a re-read of php.ini.

--
Quod subigo farinam

$email =~ s/oz$/au/o;

Wes Bailey
Guest
 
Posts: n/a
#4: Jul 16 '05

re: php.ini file missing in OS X


I use a different PHP installation from Marc Liyanage at
http://www.entropy.ch/software/macosx/php/ so that I have the latest
PHP version. The php.ini file I use for this distribution is in
/usr/local/lib

I run OS X 10.2

Wes Bailey
[color=blue]
> dellsala@yahoo.com (Dell Sala) wrote in message
> news:<f2273b17.0307062108.2e1d87d1@posting.google. com>...
> I have recently enabled the PHP 4.2.1 that comes pre-installed on OS
> X. After making all the prescribed changes to the httpd.conf file php
> seems to work fine.
>
> I would like to make some changes to the php.ini file, but I can't
> find it. phpinfo() tells me that it is in /usr/lib but don't see the
> file there (or anywhere else). Even after creating my own php.ini file
> in /usr/lib my changes aren't acknowledged on the phpinfo() page.
>
> Suggestions?
>
> Thanks.[/color]
Closed Thread