Rob Williams Rob Williams - 2 years ago 108
PHP Question

php.ini file nowhere to be found?

I am aware that there are a lot of questions regarding this already, but I've looked through each of them and have found nothing.

I am running php 7.0.6, and Apache2.4. I downloaded PHP from (I got the second one down, the x86 threadsafe one). After download I extracted it straight to the

drive under

I am trying to install the Magento e-commerce platform but am required to install a few PHP extensions before I can proceed (namely curl, xsl, intl, mbstring, openssl and gd)

I had a read around and found that to enable them I have to remove the semicolon before them in the
file, so I have navigated to
and looked for it, but can only find
, which having looked at another thread, neither is what I want.

I also read that it is sometimes just a file called php, but cannot find that either in the

I then performed a
command in a php file and ran it, getting this result:

Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)

I have then looked in the
folder to no avail, and I don't know how I am supposed to find the
file so I can remove the semicolon and load the php extensions.

Any help would be appreciated.

Answer Source

Where PHP is installed C:\php there is a php.ini-development and php.ini-production. You can copy or rename one of these to php.ini. These are templates and have all of the default settings that are needed. The main difference is that the development one will have error reporting turned on and the production one will not:

It should be loaded from either the PHP directory C:\php or C:\windows. I use the PHP directory as PHP will always look in the directory from which PHP is run:

copy c:\php\php.ini-development c:\php\php.ini


copy c:\php\php.ini-development c:\windows\php.ini

My system:

Configuration File (php.ini) Path       C:\Windows
Loaded Configuration File               C:\app\php\php.ini
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download