Click here to Skip to main content
15,900,589 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed PHP v7.2. when I do php -v in my terminal, I get, php -v PHP 7.2.0-2+ubuntu16.04.1+deb.sury.org+2 (cli) (built: Dec 7 2017 20:14:31) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.2.0-2+ubuntu16.04.1+deb.sury.org+2, Copyright (c) 1999-2017, by Zend Technologies



Which php, gives me, /usr/bin/php



But there is no php.ini in that directory. How can I find the location of php.ini.


What I have tried:

Tried searching for the php.ini file in the folder.
Posted
Updated 3-Jan-18 0:20am

1 solution

find / -name php.ini (you might need sudo)
On my server, there are two under /etc/php/7.0/ One for apache, one for cli
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900