Jump to content

Where is php.ini file?


Recommended Posts

If PHP is reporting that then it can't find your php.ini

 

Make sure you have renamed php.ini-recommended (which is located in PHP's installation folder) to just php.ini and that you have moved the php.ini to the WINDOWS directory.

 

NOTE: Only move the php.ini if you have not added your PHP folder to the Windows PATH Variable.

Link to comment
https://forums.phpfreaks.com/topic/48134-where-is-phpini-file/#findComment-235305
Share on other sites

I succeed in creating C:\WINDOWS\php.ini by movng the file folder from the installation.

 

I restarted the Apache server.

 

BUT, phpino(), STILL shows C:\WINDOWS without the php.ini included on the screen.

 

Is that something goes wrong and that php.ini hasn't been moved under WINDOWS directory?

Link to comment
https://forums.phpfreaks.com/topic/48134-where-is-phpini-file/#findComment-236887
Share on other sites

i'm not sure about windows, but on Linux, you can have as many php.ini files as you want and place them in a directory and your phpinfo() would show that directory as the location of php.ini

 

for example, one of our clients servers at work has the following path to php.ini:

/etc/php.d/

 

and the folder '/etc/php.d/' contains many .ini files pertaining to a specific extension of PHP.

 

 

 

the most effective way to determine if your PHP settings are working as they should would be to make a change in your current php.ini and restart the web server and have a look at phpinfo() again to determine if the changes you made are reflected in it.

Link to comment
https://forums.phpfreaks.com/topic/48134-where-is-phpini-file/#findComment-242752
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.