Where is my php.ini file?

Discussion in 'Server Operation' started by Heeter, Aug 21, 2011.

  1. Heeter

    Heeter Member

    Hi ,

    I have an ubuntu 11.04 server. I am looking to edit my php.ini file.

    Where is it located?

    I do have php5 installed.

    Thanks

    Heeter
     
  2. Heeter

    Heeter Member

    Hey all,

    Figured it out, was totally in the wrong place I was looking.


    Thanks

    Heeter
     
  3. mmidgett

    mmidgett Member

    Here is one on my favorite commands since I some times forget where I might have placed a file by accident

    sudo find / -name 'php.ini'

    What this does is gain super user access and start in the / (root directory) and the rest fines what ever you like. Also you could use a wildcard if you only new some of the filename.

    sudo find / -name 'php*'

    I hope you find this useful.
     
  4. Heeter

    Heeter Member

    Thanks a lot for that, mmidgett.

    I am always in that boat, looking for misplaced stuff.

    Thanks again,

    Heeter
     
  5. erosbk

    erosbk New Member

    Oh... I am not the only one that forgets where files are lol xD

    Maybe this could become usefull for you in the future...

    To find any files with certain string inside use:
    find / -type f -exec grep -i "phrase to find" {} \; -print

    To find files modified 1 day ago or less, use (replace 1 with number of days):
    find / -type f -mtime -1 -print

    Regards xD
     

Share This Page