Phpmyadmin upgrade lost config.inc.php

NemoXP

Active Member
Feb 25, 2010
43
0
56
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.
 

NemoXP

Active Member
Feb 25, 2010
43
0
56
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
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
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.
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.
 

feldon27

Well-Known Member
Mar 12, 2003
122
15
168
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. :)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.