Skip to main content
Active reading [<https://en.wikipedia.org/wiki/PHP> <https://en.wikipedia.org/wiki/Notepad_%28software%29>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Try one of this solutionthese solutions

  1. In your terminal, type find / -name "php.ini"

  2. In your terminal, type php -i | grep php.ini  . It should show the file file path as Configuration File (php.ini) Path => /etc"Configuration File (php.ini) Path => /etc"

  3. If you can access one of your phpPHP files  , open it in a editor (notepadNotepad) and and insert below codephpinfo(); after <?php inon a new line phpinfo();. This will will tell you the php.iniphp.ini location.

  4. You can also talk to phpPHP in interactive mode. Just type php -a in the the terminal and type phpinfo();phpinfo(); after phpthe PHP interpreter initiated.

Try one of this solution

  1. In your terminal type find / -name "php.ini"

  2. In your terminal type php -i | grep php.ini  . It should show the file path as Configuration File (php.ini) Path => /etc

  3. If you can access one your php files  , open it in a editor (notepad) and insert below code after <?php in a new line phpinfo(); This will tell you the php.ini location

  4. You can also talk to php in interactive mode. Just type php -a in the terminal and type phpinfo(); after php initiated.

Try one of these solutions

  1. In your terminal, type find / -name "php.ini"

  2. In your terminal, type php -i | grep php.ini. It should show the file path as "Configuration File (php.ini) Path => /etc"

  3. If you can access one of your PHP files, open it in a editor (Notepad) and insert phpinfo(); after <?php on a new line. This will tell you the php.ini location.

  4. You can also talk to PHP in interactive mode. Just type php -a in the terminal and type phpinfo(); after the PHP interpreter initiated.

Source Link
cherankrish
  • 2.1k
  • 1
  • 17
  • 11

Try one of this solution

  1. In your terminal type find / -name "php.ini"

  2. In your terminal type php -i | grep php.ini . It should show the file path as Configuration File (php.ini) Path => /etc

  3. If you can access one your php files , open it in a editor (notepad) and insert below code after <?php in a new line phpinfo(); This will tell you the php.ini location

  4. You can also talk to php in interactive mode. Just type php -a in the terminal and type phpinfo(); after php initiated.