the first thing you need to do is to create a phpinfo test script file, if you don't know how to, CLICK HERE TO CREATE PHPINFO() FIle
Now look for Configuration File (php.ini) Path in the table that looks like this one and and you will find where you php.ini file is located
System | Windows NT DV2000 5.1 build 2600 |
Build Date | Dec 8 2004 10:16:04 |
Configure Command | cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" |
Server API | Apache 2.0 Handler |
Virtual Directory Support | enabled |
Configuration File (php.ini) Path | home/www/apache/bin/php.ini |
PHP API | 20031224 |
PHP Extension | 20041030 |
Zend Extension | 220040412 |
Debug Build | no |
Thread Safety | enabled |
IPv6 Support | enabled |
Registered PHP Streams | php, file, http, ftp, compress.zlib, https, ftps |
Registered Stream Socket Transports | tcp, udp, ssl, sslv3, sslv2, tls |
https://www.wallpaperama.com/forums/finding-the-location-of-php-ini-in-linux-windows-server-t1655.html