how does one find the php.ini file on Linux box?

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

    how does one find the php.ini file on Linux box?

    I want to edit the php.ini file. How do I find it? I tried phpinfo()
    and saw a bunch of path info, but none to php.ini.
  • Andy Hassall

    #2
    Re: how does one find the php.ini file on Linux box?

    On 1 Sep 2004 16:00:41 -0700, lkrubner@geocit ies.com (lawrence) wrote:
    [color=blue]
    >I want to edit the php.ini file. How do I find it? I tried phpinfo()
    >and saw a bunch of path info, but none to php.ini.[/color]

    It's always been in the phpinfo() output in any version I remember.

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Aidan

      #3
      Re: how does one find the php.ini file on Linux box?

      Hi Lawrence,

      Try this at the command line:

      prompt:~$ find / -name php.ini

      This command will search your entire file system for a file named php.ini,
      and when it find's it, it will give you the full path to it.

      HTH

      Aidan

      "lawrence" <lkrubner@geoci ties.com> wrote in message
      news:da7e68e8.0 409011500.1dc3f 374@posting.goo gle.com...[color=blue]
      > I want to edit the php.ini file. How do I find it? I tried phpinfo()
      > and saw a bunch of path info, but none to php.ini.[/color]


      Comment

      • Pjotr Wedersteers

        #4
        Re: how does one find the php.ini file on Linux box?

        lawrence wrote:[color=blue]
        > I want to edit the php.ini file. How do I find it? I tried phpinfo()
        > and saw a bunch of path info, but none to php.ini.[/color]

        locate php.ini


        Comment

        • Alvaro G. Vicario

          #5
          Re: how does one find the php.ini file on Linux box?

          *** lawrence escribió/wrote (1 Sep 2004 16:00:41 -0700):[color=blue]
          > I want to edit the php.ini file. How do I find it? I tried phpinfo()
          > and saw a bunch of path info, but none to php.ini.[/color]

          It should be in the very first table, labeled "Configurat ion File (php.ini)
          Path". There can also be some other entries: "Scan this dir for additional
          ..ini files" and "additional .ini files parsed".

          If it's an RPM release, just type:

          rpm -ql | grep php.ini

          --
          --
          -+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
          +- http://www.demogracia.com (la web de humor para mayores de 100 años)
          ++ «Sonríe, que te vamos a hacer una foto para la esquela»
          --

          Comment

          Working...