The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Phpmyadmin upgrade lost config.inc.php

Discussion in 'Database Discussions' started by NemoXP, Jun 11, 2012.

  1. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    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. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,455
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Can you please clarify this a bit more? You installed your own version of phpMyAdmin?

    cPanel does not backup cPanel before updating, no.
     
  4. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,455
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    and now another question: is there any file that i can modify so that "designer view" will remain active?
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,455
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    ok, great, or i can just follow my own tutorial every time phpmyadmin update is made

    /http://catalin.hutanu.ro/learning/phpmyadmin-designer-view/
     
    #9 NemoXP, Jun 15, 2012
    Last edited: Jun 15, 2012
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    /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.
     
    #10 cPanelKenneth, Jun 18, 2012
    Last edited: Jun 19, 2012
  11. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    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.
     
  12. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston, TX
    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. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page