where the hell did php.ini go!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
s3rg1o
Forum Commoner
Posts: 32
Joined: Sun Feb 16, 2003 4:58 pm

where the hell did php.ini go!

Post by s3rg1o »

Hey guys, I recently installed php 4.3.1 with the latest version of GD (2.0.12) I usually go in after a php install to change php.ini to the settings I like especially turning register_globals on and changing the post size well...it's not there! it's not in /usr/local/lib/php.ini...

here is the configuration I used

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql' '--enable-ftp' '--with-gd=/usr/local/gd-2.0.12' '--with-jpeg-dir=/usr/local' '--with-config-file-path=/usr/local/lib/php.ini'

I trued it without --with-config-file-path and still no dice...where is php.ini

oh yeh I also did a
#locate php.ini

no dice
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

you could use strace on the php cli binary maybe
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

<?php phpinfo(); ?>
tells you which php.ini is used (if the file is present)
s3rg1o
Forum Commoner
Posts: 32
Joined: Sun Feb 16, 2003 4:58 pm

Post by s3rg1o »

oh yes, that was read, /usr/local/lib/php.ini

but it's not reading it and I have no idea how to get php to read it!
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

how do you _know_ its not reading it?
s3rg1o
Forum Commoner
Posts: 32
Joined: Sun Feb 16, 2003 4:58 pm

Post by s3rg1o »

because I changed register_globals to ON and I changed the path for the MySQL socket
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

fair enuff
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Did you restart your web server when you made the changes to the php.ini?

Mac
Post Reply