Where Can I find the php.ini File?
Quick question: I am running Mandrake 9.1 large but can't seem to find the php.ini file to make changes. Can someone point out where it would have been installed by default with my OS image?
Thanks.
7 Replies
@mlarrabee:
can't seem to find the php.ini file to make changes. Can someone point out where it would have been installed by default
/etc/php.ini on a Mandrake box here at home.
I've seen a few distros put it with the other apache conf files.
Search results:
[root@localhost share]# locate php.ini
/usr/share/doc/libphp_common430-430/php.ini-recommended
/usr/share/doc/libphp_common430-430/php.ini-dist
[root@localhost share]#
Yet php is running because I can run php pages through Apache2 and they work fine.
@mlarrabee:
Built up the locate database and ran it looking for the file but it still didn't find it…odd.
Then do as root
find . -name php.ini
For instance, I've got Gentoo running with php installed as a module, and the default location for me is: /etc/php/apache2-php4/php.ini
Hope this helps.