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 “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!



Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: