phpMyAdmin 2.6.4 is released Sep 10th 2005

Updated with:
Code:
#!/bin/bash

cd /var/www/html

VERSION=2.6.4

wget aleron.dl.sf.net/sourceforge/phpmyadmin/phpMyAdmin-$VERSION.tar.gz
tar xzf phpMyAdmin-$VERSION.tar.gz
rm -f phpMyAdmin phpMyAdmin-$VERSION.tar.gz

find phpMyAdmin-$VERSION -type f -exec chmod 640 {} \;
find phpMyAdmin-$VERSION -type d -exec chmod 750 {} \;
chown -R apache:apache phpMyAdmin-$VERSION
ln -s phpMyAdmin-$VERSION phpMyAdmin

perl -pi -e 's/(..auth_type..\s*=\s*.)config/${1}http/' phpMyAdmin/config.inc.php
perl -pi -e 's/(PmaNoRelation_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpMyAdmin/config.inc.php

exit 0
Then you'll want to remove the old phpMyAdmin directory.

Cheers!
 
l0rdphi1 said:
rm -f phpMyAdmin phpMyAdmin-$VERSION.tar.gz

Is this correct with the RM? What is suppose to be happening here?
maybe something like:

Code:
mv -f phpMyAdmin phpMyAdmin.bak
rm -rf phpMyAdmin-$VERSION.tar.gz
 
Last edited:
That code removes the link phpMyAdmin thats pointing to the old phpmyadmin folder and also removes the .tar.gz file as its already unpacked. The phpMyAdmin link is recreated later on to point to the new phpmyadmin folder but you still need to find the real folder containing the old phpmyadmin files and delete it after you test to make sure its upgraded correctly.
 
Back
Top