skip to Main Content

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

3

Answers


  1. The fastest way ist to check out the ini path on the phpinfo() Call

    Simply edit your index.php

    <?php echo phpinfo(); ?>
    
    Login or Signup to reply.
  2. Type in your console:

    php -i |grep php.ini
    
    Login or Signup to reply.
  3. On macOS Catalina

    type

    1. localhost/phpmyadmin into browser
    2. click PHPInfo on menu
    3. ctrl+f "php.ini"
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search