Re: How do I find my php.ini file?

From: Date: Wed, 22 Dec 2004 16:30:30 +0000
Subject: Re: How do I find my php.ini file?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-204969@lists.php.net to get a copy of this message
John Nichel wrote:
Don wrote:
Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says:
Configuration File (php.ini) Path        /etc
Yet when I log on to my server and look for it in /etc, it is not there. How can I find it???
find / -name php.ini locate php.ini If you installed from source, you will have to copy one of the ini files from the untared source to the proper location.
A little-known tip is that when phpinfo() gives you just a path to the ini file, then it isn't actually there. It looked for it there, but it didn't find it. If you then create /etc/php.ini in your case and restart your server and look at phpinfo() again you will see it says /etc/php.ini. -Rasmus

« previous php.general (#204969) next »