By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,052 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,052 IT Pros & Developers. It's quick & easy.

php.ini listed in phpinfo questions

P: n/a
I was trying to follow some instructions on installing Smarty and suddenly
found php.ini is not where phpinfo lists it to be.

1. Is /usr/local/lib the default location for the php.ini
2. In old versions of PHP, did php.ini install by default and not have to be
copied?

The thing is I've installed PHP on my own home servers for years and never
had the need to edit the php.ini file before (well I don't remember doing
so). Anyhow checking through the files, I see a file called php-config
resident in the scripts directory and it has been created (or last edited?)
when I installed PHP.

Am I correct in assuming that all I need to do is copy php-config to
/usr/local/lib and rename php.ini ?

Cheers

Phil
Oct 4 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Oct 4, 1:54 am, "Phil Latio" <phil.la...@f-in-stupid.co.ukwrote:
I was trying to follow some instructions on installing Smarty and suddenly
found php.ini is not where phpinfo lists it to be.

1. Is /usr/local/lib the default location for the php.ini
2. In old versions of PHP, did php.ini install by default and not have to be
copied?

The thing is I've installed PHP on my own home servers for years and never
had the need to edit the php.ini file before (well I don't remember doing
so). Anyhow checking through the files, I see a file called php-config
resident in the scripts directory and it has been created (or last edited?)
when I installed PHP.

Am I correct in assuming that all I need to do is copy php-config to
/usr/local/lib and rename php.ini ?

Cheers

Phil
it depends on your PHP installation

run php -i | grep "php.ini" in your command shell to see where php is
looking for php.ini

Oct 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.