As php developer, you will find your self enabling or disabling some features in php, therefore you need to edit the php.ini file, the question is where this php.ini located on lubuntu/ubuntu?
If you have a php 5 most likely the php.ini is located on /etc/php5/cli/php.ini, and if you are running php 7 the php.ini should be located at /etc/php/7.0/cli/php.ini.
/etc/php5/cli/php.ini
/etc/php/7.0/cli/php.ini
But these location could be changed, the better way to find out where php.ini located is to ask php itself, you can run this command to ask php where is the php.ini located.
php -i | grep php\.ini
That's the best way to do it!
No comments:
Post a Comment