Page 1 of 1

where the hell did php.ini go!

Posted: Sun Apr 06, 2003 1:56 am
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

Posted: Sun Apr 06, 2003 4:18 am
by d1223m
you could use strace on the php cli binary maybe

Posted: Sun Apr 06, 2003 8:47 am
by volka

Code: Select all

<?php phpinfo(); ?>
tells you which php.ini is used (if the file is present)

Posted: Sun Apr 06, 2003 12:36 pm
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!

Posted: Sun Apr 06, 2003 12:39 pm
by d1223m
how do you _know_ its not reading it?

Posted: Sun Apr 06, 2003 12:52 pm
by s3rg1o
because I changed register_globals to ON and I changed the path for the MySQL socket

Posted: Sun Apr 06, 2003 1:13 pm
by d1223m
fair enuff

Posted: Sun Apr 06, 2003 1:31 pm
by twigletmac
Did you restart your web server when you made the changes to the php.ini?

Mac