Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a server (apparently Apache/2.2.3 Red Hat) that has an old version of phpMyAdmin (2.x) and needs upgrading to the latest version but I have no idea how to go about doing that. I don't really know much command line - I'm not really a sysadmin.

I found this guide which looks pretty good, but I think it's for installing it from scratch and I'm not sure it applies if I've already got phpMyAdmin installed.

http://www.thegeekstuff.com/2010/09/install-phpmyadmin/

Any help would be much appreciated, as I'm having trouble finding any decent guides. The phpMyAdmin site is useless as far as I can see. I could really do with beginner instructions, don't assume I know anything!

Thanks.

share|improve this question
    
the way phpmyadmin works, a reinstall will accomplish about the same thing. –  Tim Dec 8 '11 at 14:11
    
Okay, so should be fine if I just follow those instructions in the guide? Assuming then that I'll have two installations on there, how do I use the new one and disable/remove the old one? –  BadHorsie Dec 8 '11 at 14:24
    
For the love of $diety, upgrade your version of Apache. That's vulnerable to everything. –  MDMarra Dec 8 '11 at 14:46

3 Answers 3

yum update phpMyAdmin should work just as well if you installed phpMyAdmin from the package manager (most people do as it's easy to manage). If you installed it manually, just save the config PHP file and delete and add back in the new files.

phpMyAdmin is simply a web application, so there is no compiling from source or anything like that. :)

Update: as to the comment below, it seems you have installed phpMyAdmin from source. All you literally need to do is:

  • Move to the phpMyAdmin folder cd /path/to/phpMyAdmin
  • Back up the config file mv config.inc.php /tmp
  • Delete everything in the phpMyAdmin folder rm -rf /path/to/phpMyAdmin/*
  • Download phpMyAdmin wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.8/phpMyAdmin-3.4.8-english.tar.gz?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Fdownloads.php&ts=1323356399&use_mirror=surfnet
  • Rename the file mv phpMyAdmin-3.4.8-english.tar.gz?r=http:%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Fdownloads.php phpMyAdmin-3.4.8-english.tar.gz
  • Extract the files tar xzvf phpMyAdmin-3.4.8-english.tar.gz
  • Move into the newly created phpMyAdmin directory cd phpMyAdmin-3.4.8-english
  • Move all files from the phpMyAdmin-3.4.8-english directory to the previous folder (main folder where phpMyAdmin files and folders are stored) mv * ../

And with all of that, you should be good! :)

share|improve this answer
    
The OP is running 2.2.3, but the current version of Apache on RH is 2.2.15. This suggests that phpMyAdmin on the machine is a source install. –  Rilindo Dec 8 '11 at 14:52
    
Ah ha. Then all the OP needs to do is just replace the files (delete them first and then add them back in - in case if the file structure changed). –  Taylor Jasko Dec 8 '11 at 15:00
    
I have moved all the new files into the phpMyAdmin directory but it hasn't made any difference. In my browser I still see the old phpMyAdmin-2.11.11.3 even though the phpMyAdmin directory has been completely updated with new files. –  BadHorsie Dec 8 '11 at 18:31
1  
You either 1) have caching in place on the server or 2) your browser cache needs refreshed. :) –  Taylor Jasko Dec 8 '11 at 19:51
    
It must be server caching. How do I refresh the cache? –  BadHorsie Dec 9 '11 at 10:12

Give this a shot, on your web server system goto the web folder (for my example I will use /var/www). Assuming your phpMyAdmin is in /var/www/, rename the "old" folder: mv -if /var/www/phpMyAdmin /var/www/oldPhpMyAdmin. Now unzip your new version into the /var/www/ folder. Point your browser to the new install.

share|improve this answer

With PHPMyAdmin on a new upgrade, the only file you care about is config.inc.php.

Back that file up (Might as well rename the directory) Unzip the new one, and drop the old config.inc.php back in.

share|improve this answer
    
The old directory appears to contain two configs though. Which one do I need? config.inc.php.rpmnew and config.inc.php.rpmsave –  BadHorsie Dec 8 '11 at 16:55
    
Neither of those. (Which, btw, are unsafe to have around because they'll be served as plaintext files). There should be a config.inc.php file, if not then something got overwritten - I'm talking about the config.inc.php from the original/old pma install –  thinice Dec 9 '11 at 18:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.