Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 6944  / 2 Years ago, mon, september 19, 2022, 8:27:58

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

More From » 12.04

 Answers
5

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


[#31762] Wednesday, September 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
initiallartebeest

Total Points: 24
Total Questions: 118
Total Answers: 105

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
;