Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439370 - dev-lang/php configuration migrations need better process/documentation
Summary: dev-lang/php configuration migrations need better process/documentation
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-23 08:54 UTC by Dirkjan Ochtman (RETIRED)
Modified: 2014-11-23 14:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirkjan Ochtman (RETIRED) gentoo-dev 2012-10-23 08:54:48 UTC
In the past, when a new php version was stabilized, I'd get a prompt to run etc-update to merge the configuration files. For the 5.4 stabilization, this didn't happen; the 5.4 php.ini seems to have gotten installed to a separate directory from the 5.3 one. This had me running into errors on one of the web apps I manage because the configuration was setup wrong.
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-05-06 09:07:57 UTC
Ping! Any response?
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2013-05-06 12:22:26 UTC
In this particular case, the php ebuild tells you where it installs its configuration file in the ebuild log.

Also you have to actively change the active php slot for each sapi, so it is not like the upgrade happens without you noticing.

At some point I need to redo the php documentation in full, but it is not a high priority.
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-08-19 13:38:35 UTC
This is still happening with php5-4 -> php5-5, and it still sucks. IMO the /etc/php/apache2-php5.5/php.ini should be installed from the 5.4 php.ini, such that I can use etc-update to merge both. If that is too hard, documenting such a process in the PHP upgrade guide seems like the least you can do.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-08-19 13:45:58 UTC
To wit:

$ sudo mv /etc/php/apache2-php5.5/{,._cfg0000_}php.ini
$ sudo mv /etc/php/apache2-php5.4/php.ini /etc/php/apache2-php5.5/php.ini
$ sudo etc-update
Comment 5 Ole Markus With (RETIRED) gentoo-dev 2014-11-23 14:33:53 UTC
Documentation is in the wiki now.