| Author |
Message |
mlarrabee
Joined: 06 Aug 2004
Posts: 3
|
| Posted: Fri Aug 06, 2004 1:51 pm Post subject: Where Can I find the php.ini File? |
|
|
Hello,
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. |
|
| Back to top |
|
fieschko
Joined: 21 Jun 2004
Posts: 19
|
| Posted: Fri Aug 06, 2004 2:27 pm Post subject: Re: Where Can I find the php.ini File? |
|
|
mlarrabee wrote: 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. |
|
| Back to top |
|
mlarrabee
Joined: 06 Aug 2004
Posts: 3
|
| Posted: Fri Aug 06, 2004 7:13 pm Post subject: php.ini file |
|
|
| That's what I thought but it doesn't exist there on my Linode, but PHP still works. |
|
| Back to top |
|
tierra
Joined: 06 Aug 2004
Posts: 157
|
| Posted: Fri Aug 06, 2004 7:15 pm Post subject: |
|
|
locate php.ini
I've seen a few distros put it with the other apache conf files. |
|
| Back to top |
|
mlarrabee
Joined: 06 Aug 2004
Posts: 3
|
| Posted: Fri Aug 06, 2004 7:51 pm Post subject: Ran Locate |
|
|
Built up the locate database and ran it looking for the file but it still didn't find it...odd.
Search results:
Code:
[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. |
|
| Back to top |
|
fieschko
Joined: 21 Jun 2004
Posts: 19
|
| Posted: Fri Aug 06, 2004 7:54 pm Post subject: Re: Ran Locate |
|
|
mlarrabee wrote: 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 |
|
| Back to top |
|
tierra
Joined: 06 Aug 2004
Posts: 157
|
| Posted: Thu Aug 12, 2004 1:54 pm Post subject: |
|
|
Well, if you can still run PHP, write a phpinfo() script, and the first info block will tell you what php.ini file it's using.
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 |
|
| Back to top |
|
Ciaran
Joined: 13 Feb 2004
Posts: 140
Location: England, UK
|
| Posted: Sun Sep 12, 2004 4:16 am Post subject: |
|
|
To get /etc/php.ini on Mandrake, you need to install the php-ini package. Otherwise, by default, PHP on Mandrake is set up to use /etc/php/ as a directory containing many different INI files, which it uses in addition to /etc/php.ini, but it does also use /etc/php.ini as well.
Hope this helps. :) |
|
| Back to top |
|
| |