Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 06, 2004 2:51 pm 
Offline
Newbie

Joined: Fri Aug 06, 2004 2:49 pm
Posts: 3
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.


Top
   
PostPosted: Fri Aug 06, 2004 3:27 pm 
Offline
Senior Newbie

Joined: Mon Jun 21, 2004 9:55 pm
Posts: 19
Website: http://kiwiinjection.com
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.


Top
   
 Post subject: php.ini file
PostPosted: Fri Aug 06, 2004 8:13 pm 
Offline
Newbie

Joined: Fri Aug 06, 2004 2:49 pm
Posts: 3
That's what I thought but it doesn't exist there on my Linode, but PHP still works.


Top
   
 Post subject:
PostPosted: Fri Aug 06, 2004 8:15 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
locate php.ini

I've seen a few distros put it with the other apache conf files.


Top
   
 Post subject: Ran Locate
PostPosted: Fri Aug 06, 2004 8:51 pm 
Offline
Newbie

Joined: Fri Aug 06, 2004 2:49 pm
Posts: 3
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.


Top
   
 Post subject: Re: Ran Locate
PostPosted: Fri Aug 06, 2004 8:54 pm 
Offline
Senior Newbie

Joined: Mon Jun 21, 2004 9:55 pm
Posts: 19
Website: http://kiwiinjection.com
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


Top
   
 Post subject:
PostPosted: Thu Aug 12, 2004 2:54 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
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


Top
   
 Post subject:
PostPosted: Sun Sep 12, 2004 5:16 am 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
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. :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group