问题
I would like to know which php.ini is the default one used by PHP ?
Because if you write locate php.ini there a 3 files and all of these files have an /etc as parent directory, but not the same parent directory of /etc, so I don't know which one is the default one used by PHP. Terminal output
回答1:
Type in your console:
php -i |grep php\.ini
回答2:
The fastest way ist to check out the ini path on the phpinfo() Call
Simply edit your index.php
<?php echo phpinfo(); ?>
回答3:
On macOS Catalina
type
- localhost/phpmyadmin into browser
- click PHPInfo on menu
- ctrl+f "php.ini"
来源:https://stackoverflow.com/questions/59282952/default-php-ini-macos-catalina