Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.