Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45046 - phpmyadmin 'config.inc.php' is not protected
Summary: phpmyadmin 'config.inc.php' is not protected
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 10:45 UTC by Ernst May-Jung
Modified: 2004-03-28 15:08 UTC (History)
1 user (show)

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 Ernst May-Jung 2004-03-18 10:45:20 UTC
An emerge -u world can course a lose of user data stored in 'config.inc.php'

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.

Actual Results:  
 


http://lists.mushaake.org/pipermail/php/Week-of-Mon-20040315/007393.html
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-03-18 10:52:25 UTC
pkg_postinst() {
        einfo
        einfo "To complete installation, you must"
        einfo "1. Update your configuration files:"
        einfo "     etc-update"
        einfo "2. Update MySQL's grant tables and the pmadb database:"
        einfo "     ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
        einfo "3. Reload MySQL:"
        einfo "     /etc/init.d/mysql restart"
        einfo
        einfo "If you are upgrading from an earlier version and are using phpMyA
dmin's"
        einfo "features for master/foreign tables be sure to read"
        einfo "  http://localhost/phpmyadmin/Documentation.html#col_com"
        einfo "You will need to perform the ALTER TABLE step yourself."
        einfo
        einfo "Finally, point your browser to http://localhost/phpmyadmin/."
        einfo
}

pkg_config() {
        einfo "This will execute the contents of ${ROOT}etc/phpmyadmin/mysql-set
up.sql"
        einfo "Type in your MySQL root password:"
        mysql -u root -p < ${ROOT}etc/phpmyadmin/mysql-setup.sql || die
        einfo "You need to reload MySQL for the changes to take effect"
}


how about reading the einfo msgs ?
Comment 2 Alexander Wagner 2004-03-18 12:35:46 UTC
Not having such files overwritten is what gentoo's config-file-protection is all about, I don't see why it isn't used here.
Maybe this is rather a feature-request than a real bug, but not having to reconfigure PHPMyAdmin after every update is a valid request IMHO.
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-03-28 15:08:01 UTC
This won't be a problem once phpmyadmin's ebuild uses the new webapp-config approach.  webapp-config provides CONFIG_PROTECT behaviour for the configuration files of web-based applications.

Best regards,
Stu