Victor Czechov
Victor Czechov

Reputation: 237

Where is php.ini in php v.5.4.6?

This file seems is missing at all. I see only a two files php.ini-development and php.ini-production, but both of them is not a configuration of current php. What I need to do if I want to add a mysqli extension in php, where I can do it?

OS Windows 7.

Solution

Rename php.ini-production to php.ini and uncomment extension_dir by removing ;. That is all.

Upvotes: 12

Views: 11938

Answers (2)

Prashant
Prashant

Reputation: 152

The location of php.ini is /etc/php.ini in Linux.

Upvotes: -1

Mihai Iorga
Mihai Iorga

Reputation: 39724

It all depends on your Operating System

Create a file check.php, and it will show your where php.ini is.

<?php
   phpinfo();
?>

Upvotes: 15

Related Questions