Where is php.ini-development on Ubuntu LAMP?

Solution 1:

php.ini-development and php.ini-production, which come with the PHP 5.3 package, are really just examples of recommended settings. You should review the settings and make sure that they apply to your use and copy them to the regular php.ini file location. On my Ubuntu 10.04.1 LTS (lucid) server, here’s where I find mine:

# locate php.ini-development

The alternative example, php.ini-production, is in the same directory.

Solution 2:

php.ini-development file for php7 on ubuntu 16.04 is located in


So you can do the following: make backup copy of your current php.ini:

$ sudo mv /etc/php/7.0/apache2/php.ini /etc/php/7.0/apache2/php.ini.back

then copy production ini file:

$ sudo cp /usr/lib/php/7.0/php.ini-development /etc/php/7.0/apache2/php.ini

and restart the server:

$ sudo service apache2 restart