Ubuntu – I can not find /usr/share/php5/php.ini-development file

12.04PHP

I install LAMP according this link. But I cannot find /usr/share/php5/php.ini-development file . My php is PHP Version 5.3.10-1ubuntu3.6 . Apache is Apache/2.2.22 (Ubuntu) . I use ubuntu 12.04 amd64. How to know which is used development or production.
Thanks

$ ls /usr/share/php5/php.ini* -l
-rw-r--r-- 1 root root 68428 Mar 11 22:44 /usr/share/php5/php.ini-production
-rw-r--r-- 1 root root 68105 Mar 11 22:44 /usr/share/php5/php.ini-production.cli
-rw-r--r-- 1 root root 68107 Mar 11 22:44 /usr/share/php5/php.ini-production-dist

Best Answer

diff /etc/php5/apache2/php.ini /usr/share/doc/php5-common/examples/php.ini-development

If this command returns nothing, then your PHP uses dev configuration.

diff /etc/php5/apache2/php.ini /usr/share/php5/php.ini-production

If this command returns nothing your PHP uses production configuration.

If you want to use dev configuration,

sudo cp /usr/share/doc/php5-common/examples/php.ini-development /etc/php5/apache2/php.ini

If you want to use production configuration,

sudo cp /usr/share/php5/php.ini-production /etc/php5/apache2/php.ini

Related Question