PhpMyAdmin 2.7.0

RenDprogrammeur

New member
Joined
Sep 21, 2005
Messages
58
Location
Netherlands
New update of PhpMyAdmin

How to update
vi updatephpmyadmin.sh


add
#!/bin/sh

cd /var/www/html


VERSION=2.7.0

wget http://surfnet.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-$VERSION.tar.gz
tar xzf phpMyAdmin-$VERSION.tar.gz
rm -fr 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.default.php
perl -pi -e 's/(PmaNoRelation_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpMyAdmin/config.default.php

exit 0


then press "Esc" and enter the :wq command and press enter

enter chmod 755 updatephpmyadmin.sh

Then run it like
sh updatephpmyadmin.sh
or
./updatephpmyadmin.sh

Have fun with it :)

edit
Don't update you can't edit and delete rows in this version!
 
Last edited:
you miss this
Code:
cp /var/www/html/-2.6.4-pl4/config.inc.php /var/www/html/phpMyAdmin-2.7.0/

here is step by step

Code:
cd /var/www/html/
Code:
wget [url]http://ovh.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.7.0.tar.gz[/url]
Code:
tar xzf phpMyAdmin-2.7.0.tar.gz
Code:
rm -fr phpMyAdmin
Code:
cp /var/www/html/-2.6.4-pl4/config.inc.php /var/www/html/phpMyAdmin-2.7.0/
Code:
find phpMyAdmin-2.7.0 -type f -exec chmod 640 {} \;
Code:
find phpMyAdmin-2.7.0 -type d -exec chmod 750 {} \;
Code:
chown -R apache:apache phpMyAdmin-2.7.0
Code:
ln -s phpMyAdmin-2.7.0 phpMyAdmin
Code:
perl -pi -e 's/(..auth_type..\s*=\s*.)config/${1}http/' phpMyAdmin/config.inc.php
Code:
perl -pi -e 's/(PmaNoRelation_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpMyAdmin/config.inc.php

test phpmyadmin if work fine delete old one with phpMyAdmin-2.7.0.tar.gz
Code:
rm -fr phpMyAdmin-2.6.4-pl4 phpMyAdmin-2.7.0.tar.gz



Wael
 
@how@ said:
you miss this
Code:
cp /var/www/html/-2.6.4-pl4/config.inc.php /var/www/html/phpMyAdmin-2.7.0/

here is step by step

Code:
cd /var/www/html/
Code:
wget [url]http://ovh.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.7.0.tar.gz[/url]
Code:
tar xzf phpMyAdmin-2.7.0.tar.gz
Code:
rm -fr phpMyAdmin
Code:
cp /var/www/html/-2.6.4-pl4/config.inc.php /var/www/html/phpMyAdmin-2.7.0/
Code:
find phpMyAdmin-2.7.0 -type f -exec chmod 640 {} \;
Code:
find phpMyAdmin-2.7.0 -type d -exec chmod 750 {} \;
Code:
chown -R apache:apache phpMyAdmin-2.7.0
Code:
ln -s phpMyAdmin-2.7.0 phpMyAdmin
Code:
perl -pi -e 's/(..auth_type..\s*=\s*.)config/${1}http/' phpMyAdmin/config.inc.php
Code:
perl -pi -e 's/(PmaNoRelation_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpMyAdmin/config.inc.php

test phpmyadmin if work fine delete old one with phpMyAdmin-2.7.0.tar.gz
Code:
rm -fr phpMyAdmin-2.6.4-pl4 phpMyAdmin-2.7.0.tar.gz



Wael
phpMyAdmin 2.7.0 uses "config.default.php" not "config.inc.php"

your step by step whouldnt work, however RenDprogrammeur update scripts works like a charm :)
 
2.7.0 Patch Level 1 - Security Fixes!


Hi,

We have to inform you that phpMyAdmin 2.7.0 has a newly introduced vulnerability
in it, which was reported to us two days after the release, and fixed
immediately. A formal security alert will be posted on http://www.phpmyadmin.net
in the next few hours.

Marc Delisle, for the team
:eek: ;)
 
RenDprogrammeur your script work fine for my

thank you
 
John taught me an easy way

Edit phyMyAdmin.sh to the version you want for eg 2.7.0-pl1

cd /usr/local/directadmin/scripts
./phpMyAdmin.sh

That does it :)
 
boonchuan said:
John taught me an easy way

Edit phyMyAdmin.sh to the version you want for eg 2.7.0-pl1

cd /usr/local/directadmin/scripts
./phpMyAdmin.sh

That does it :)

ha !! even better !!
 
I used the script above and edited the version number to 2.7.0-pl1 too worked wonders.
 
Back
Top