PHP – `php.ini` file for Apache and PHP CLI (command line) is NOT the same

Today, after spending 3 days (yes 3 days!) trying to install PHPUnit on my Windows 7 machine, I realize that `php.ini` used by the PHP CLI is not the same with Apache server.

Quoted from Danial Brown from php.net “If there’s no php.ini file in the path it’s checking, it’ll just
use the internal defaults.  You may not have a php.ini file anywhere
on your system, which is okay if you don’t need to do any tuning.”

And from Stephen “If you have one, it is likely in: <php>\php.ini”

So, I just write this down so as we can find it on the internet when we run into PHP-related installation like this. Hope that you would find it helpful!

Nam

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: