Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
# php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed:      /etc/php.d/bcmath.ini,
/etc/php.d/curl.ini,

Alternate Method:

No matter what control panel you are using, the complete way to find what php.ini file to edit for specific domain is by the following:

...

Code Block
languagebash
<? phpinfo() ?>

 Open the file in your browser window, like http://domain.tld/info.php

Search for line Loaded Configuration File, which will show you full path to php.ini file.