Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2008
    Posts
    2,249

    php.ini no where to be found

    I am running lighttpd php and zendserver and for some reason * latest centos 5 install* I cannot find php.ini what directory may it be in?
    Leader of the new anti sig spamming club.

  2. #2
    Join Date
    Nov 2003
    Location
    Marylebone, London, UK
    Posts
    526
    type command:

    php -r 'phpinfo();' | grep php.ini

  3. #3
    try /usr/lib or usr/local/lib

  4. #4
    Join Date
    Oct 2008
    Posts
    2,249
    Quote Originally Posted by squirrelhost View Post
    type command:

    php -r 'phpinfo();' | grep php.ini
    Ill try it....
    Quote Originally Posted by Orpheus View Post
    try /usr/lib or usr/local/lib
    usr/local/lib is empty and usr/lib doesnt have it
    Leader of the new anti sig spamming club.

  5. #5
    Join Date
    Oct 2008
    Posts
    2,249
    php command not found





    found it thanks guys.... zend server moved it to a new directory for some reason.
    Leader of the new anti sig spamming club.

  6. #6
    which place you found it?

  7. #7
    Join Date
    Feb 2006
    Location
    Buffalo NY
    Posts
    1,348
    For future reference find is your friend

    Code:
    find / -name 'php.ini'
    Cody R.
    Hawk Host Inc. Proudly Serving websites since 2004.
    Let's Encrypt Sponsor.

  8. #8
    Join Date
    May 2008
    Posts
    340
    Or even performing a locate after the locate database has been updated will show you all the php.ini file(s) in the server.

    updatedb &
    locate php.ini
    Twitter : http://twitter.com/eth1networks
    Contact Us : support[at]eth1.in

  9. #9
    Quote Originally Posted by darkeden View Post
    found it thanks guys.... zend server moved it to a new directory for some reason.
    Glad to know that you found it. It would be a nice thing if you would share that with the community.

    Btw, I generally use the following to find the php.ini :

    Code:
    php -i | grep php.ini

  10. #10
    Join Date
    Jun 2008
    Location
    India
    Posts
    261
    php -i | grep php.ini will do the trick
    Ranjith
    Light travels faster thn sound.This is why some people look bright until you actually hear them speak

  11. #11
    Yes, using php -i | grep php.ini you should get output something like this:

    # php -i | grep php.ini
    <tr><td class="e">Configuration File (php.ini) Path </td>t<d class="v">/usr/lib/php.ini /<td/><tr<>/code>
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

Similar Threads

  1. WMD found!
    By nmluan in forum Web Hosting Lounge
    Replies: 9
    Last Post: 06-20-2003, 03:19 AM
  2. 404 Not Found
    By bueno in forum Hosting Security and Technology
    Replies: 4
    Last Post: 05-23-2003, 10:03 AM
  3. look what I have found
    By luisfalcon in forum Hosting Security and Technology
    Replies: 9
    Last Post: 07-09-2002, 06:25 PM
  4. Hah, look what I found on the web!
    By Adi-2k1 in forum Web Hosting Lounge
    Replies: 11
    Last Post: 10-13-2001, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •