ubuntu - What's the difference between php.ini-production and php.ini-production-dist in /usr/share/php5? -


i've been using same php.ini file on 10 years, periodically merging changes new php versions it. since breezy (5.10), i've more or less followed debian/ubuntu conventions (with modifications), including split between cli , apache versions.

as result, have in /etc/php5 has been different distribution provides default. need know differences are. luckily, default ini files still available in /usr/share/php5. understand distro default "production" (which makes sense), see more 1 production file:

# ls -l /usr/share/php5/php.ini* -rw-r--r-- 1 root root 66k jul 15 20:44 /usr/share/php5/php.ini-development -rw-r--r-- 1 root root 65k jul 15 20:44 /usr/share/php5/php.ini-production -rw-r--r-- 1 root root 64k jul 15 20:44 /usr/share/php5/php.ini-production-dist -rw-r--r-- 1 root root 64k jul 15 20:44 /usr/share/php5/php.ini-production.cli 

what know:

  • what exactly purpose of each of these files?
  • in vanilla install, of these end /etc/php5/apache2/php.ini , /etc/php5/cli/php.ini?

my guess be:

  • php.ini-development: pretty obvious - stricter error handling, errors displayed, no legacy bug workarounds. can copied or symlinked /etc/php5/apache2/php.ini development.
  • php.ini-production.cli: identical /etc/php5/cli/php.ini?

the difference between php.ini-production , php.ini-production-dist has me stumped. reference, differences are:

# diff php.ini-production php.ini-production-dist  213c213 < short_open_tag = on --- > short_open_tag = off 316c316 < disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, --- > disable_functions = 407c407 < memory_limit = 128m --- > memory_limit = 32m 1407c1407 < session.gc_probability = 0 --- > session.gc_probability = 1 

a similar question has been asked here, answers didn't contain i'd know.

i'm using ubuntu , kubuntu raring (13.04).


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -