Results 1 to 13 of 13

Thread: Phpmyadmin upgrade lost config.inc.php

  1. #1
    Member
    Join Date
    Feb 2010
    Location
    Constanta, Romania, Romania
    Posts
    43
    cPanel/WHM Access Level

    Root Administrator

    Default Phpmyadmin upgrade lost config.inc.php

    Hello.
    After the last update to ajax phpmyadmin i lost a password to pma user. Is there any way i can find out the password or a backup of that file?
    The location of the file is in /usr/local/cpanel/base/3rdparty/phpMyAdmin , and it was a automated update.

    Please?
    Thanks.

  2. #2
    Member
    Join Date
    Feb 2010
    Location
    Constanta, Romania, Romania
    Posts
    43
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    so, i found a archive made by me long time ago... so the problem now is : find a backup to phpmyadmin made by cpanel (before update). Is there such a backup?

  3. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,090
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    Can you please clarify this a bit more? You installed your own version of phpMyAdmin?

    cPanel does not backup cPanel before updating, no.

  4. #4
    Member
    Join Date
    Feb 2010
    Location
    Constanta, Romania, Romania
    Posts
    43
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    No, i have not installed my own version.
    I just modified some files in the past, and after a automatic update, those files were rewritten, and i asked if cpanel backups its files before update.
    So, "cPanel does not backup cPanel before updating, no." is enough.
    Thanks

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,090
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    I just modified some files in the past, and after a automatic update, those files were rewritten
    Correct. All cPanel files are updated to the latest versions or checked and refreshed to make sure they are as cPanel needs them to be, to operate properly.

  6. #6
    Member
    Join Date
    Feb 2010
    Location
    Constanta, Romania, Romania
    Posts
    43
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    and now another question: is there any file that i can modify so that "designer view" will remain active?

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,090
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    The only way to prevent cPanel from touching a file I believe is to make it immutable.

    You might be better off installing your own phpMyAdmin and lock it down tight. That install of phpMyAdmin will not be touched of course.

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    Quote Originally Posted by Infopro View Post
    The only way to prevent cPanel from touching a file I believe is to make it immutable.

    You might be better off installing your own phpMyAdmin and lock it down tight. That install of phpMyAdmin will not be touched of course.
    Please do not make files immutable, this will cause issues when updating cPanel.

    Instead, in the interim you can use the cpanel.exclude file but that will stop working once we start distributing phpMyAdmin via RPM (which may happen in 11.36) - but at that point you can just make your own RPM and tell cPanel to use that instead of what we supply, which is a more robust solution to this long-term issue.

  9. #9
    Member
    Join Date
    Feb 2010
    Location
    Constanta, Romania, Romania
    Posts
    43
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    ok, great, or i can just follow my own tutorial every time phpmyadmin update is made

    /http://catalin.hutanu.ro/learning/phpmyadmin-designer-view/
    Last edited by NemoXP; 06-15-2012 at 10:54 AM.

  10. #10
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,133
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    /etc/cpanelsync.exclude will not prevent modifications to files distributed inside a tarball. It only prevents modifications to files distributed directly by cpanelsync. Thus it is not possible with cpanelsync.exclude to prevent modifications to applications such as phpMyAdmin, Horde or other 3rd party applications that are distributed by, and installed from, tarballs.
    Last edited by cPanelKenneth; 06-19-2012 at 06:52 AM. Reason: clarified scope
    Kenneth
    Development
    cPanel, Inc.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    You could create a postupcp script and a postmysqlup script to copy your file back into place (saving the file in /root or somewhere safe where it won't be removed). Those files would be created in /usr/local/cpanel/scripts location. All the script has to do is just copy the file back to the location and it would run at the end of upcp or mysqlup commands.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Member feldon27's Avatar
    Join Date
    Mar 2003
    Location
    Houston, TX
    Posts
    48

    Default Re: Phpmyadmin upgrade lost config.inc.php

    Considering the atrocious AJAXification of phpMyAdmin that I have to keep turning off to save my sanity, perhaps a way to override or extend the config file should be built into cPanel/WHM.

  13. #13
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Phpmyadmin upgrade lost config.inc.php

    It might be ideal to post a feature request to allow PHPMyAdmin file setting changes at Feature Requests for cPanel & WHM

    Right now, feature requests are posted there for extending or changing the current options available with cPanel and WHM.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  2. phpMyAdmin Query Error #2013 lost connection
    By Snowman30 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-01-2007, 03:31 AM
  3. Lost Phpmyadmin
    By hamper in forum Database Discussions
    Replies: 2
    Last Post: 04-29-2006, 03:10 PM

Tags for this Thread