- Forums
- Linux
- how to find locate where php.ini file is located at windows linux PHP
This Page Contains information about how to find locate where php.ini file is located at windows linux PHP By web hosting in category Linux with 0 Replies. [3103], Last Updated: Mon Jun 24, 2024
web hosting
Fri Feb 29, 2008
0 Comments
382 Visits
today i had to do some changes on my server, and one of the things i had to do was to change some options on my web server. i didn't remember where my php.ini file was located at so i took i guess, i found one but i was user since i have php installed on windows machine.
For PHP8, you might find it at:
/etc/php/8.1/fpm/php.ini
then the light clicked on my head, its very easy to find out where its located. just create a phpinfo() file
just copy and paste the following code into a blank notepad and save it as phpinfo.php and upload to your wesbite:
<?php
phpinfo();
?>
then just look for a line where it says:
Configuration File (php.ini) Path
that's it