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
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
Using
apt-file
I get the following:So check if you have that package installed (if you have PHP installed you should) and check if that file is what you are looking for.
This is the exact syntax to be typed as below:
First backup your original "php.ini" file using the command in terminal window as below:
then copy development version of php.ini to the original php.in by the below command:
then now check if the development version of php.ini is running by the below command:
If no response comes then the development version of php.ini settings are current and running else the production version is still running. That's it !!