php.ini file missing in OS X

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dell Sala

    php.ini file missing in OS X

    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

    #2
    Re: php.ini file missing in OS X

    In article <f2273b17.03070 62108.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

    Comment

    • David Robley

      #3
      Re: php.ini file missing in OS X

      In article <f2273b17.03070 62108.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;

      Comment

      • Wes Bailey

        #4
        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.2e1d 87d1@posting.go ogle.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]

        Comment

        Working...