phpMyAdmin 2.6.0

I updated like this:
Code:
cd /var/www/html
wget [url]http://aleron.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.6.0-pl2.tar.gz[/url]
tar xzf phpMyAdmin-2.6.0-pl2.tar.gz
rm -f phpMyAdmin-2.6.0-pl2.tar.gz
mv phpmyadmin phpmyadminOLD
mv phpMyAdmin-2.6.0-pl2 phpmyadmin
chown -R admin: phpmyadmin
perl -pi -e 's/(..auth_type..\s*=\s*.)config/${1}http/' phpmyadmin/config.inc.php
perl -pi -e 's/(PmaAbsoluteUri_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpmyadmin/config.inc.php
perl -pi -e 's/(PmaNoRelation_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpmyadmin/config.inc.php
Phi1.

Edited for pl2 :)
 
Last edited:
Thanks l0rdphi1 for the script and interfasys for the thread.. i visited the phpmyadmin.net site two days ago but was RC3 yet:D i ll update my DA boxs with this version.
 
Yes, I'm on RH EL. If you use FreeBSD you may need to use fetch inplace of wget. I don't know much about FreeBSD :)

Cheers, Phi1.
 
What have I done wrong if I get a blank page when pointing my browser to http://server/phpMyAdmin-2.6.0 ?

I followed all instructions to the point - only substitution being that my old phpMyAdmin was installed in phpMyAdmin-2.5.6, so I simply extracted the files, chowned recursively the directory, did the perl script in my command line - received no errors - phpMyAdmin is in place, but I can't seem to be able to access it.

There seems to be trouble with my links though, because when attempting to open certain files within the directory (only some) I get the error - too many symlinks. But I can't find any symlinks in my /var/html/www directory - the only one that was there was 'phpMyAdmin' which I deleted so I could set up a new one pointing to phpMyAdmin-2.6.0. But still htp://server/phpmyadmin works, even with no symlink...

Anyone got suggestions? I might have been a bit too quick doing this, considering my limited time with Linux...
 
Last edited:
interfasys said:
2.6.0-pl1 was released ;)

wget http://aleron.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.6.0-pl1.tar.gz

Also, in my install I have phpMyAdmin and not phpmyadmin. I don't know if it's me that is not using the standard DA name.
I updated my post too :)

You could also change your phpMyAdmin to lowercase: ;)
Code:
mv /var/www/html/phpMyAdmin-?.?.? /var/www/html/phpmyadmin
mv /var/www/html/phpMyAdmin /var/www/html/phpmyadmin
perl -pi -e 's#phpMyAdmin-.\..\..#phpmyadmin#g' /etc/httpd/conf/httpd.conf
perl -pi -e 's#html/phpMyAdmin#html/phpmyadmin#g' /etc/httpd/conf/httpd.conf
/sbin/service httpd restart
That will also fix the phpmyadmin-x.x.x folder naming from old versions of DA.

Of course, that is also untested code. Use at own risk. :)

Cheers, Phil.
 
Last edited:
torp said:
What have I done wrong if I get a blank page when pointing my browser to http://server/phpMyAdmin-2.6.0 ?
That is very odd. Lets try this:
Code:
cd /var/www/html
rm -fr php?y?dmi*
wget [url]http://aleron.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.6.0-pl1.tar.gz[/url]
tar xzf phpMyAdmin-2.6.0-pl1.tar.gz
mv phpMyAdmin-2.6.0-pl1 phpmyadmin
chown -R admin:admin phpmyadmin
perl -pi -e 's/(..auth_type..\s*=\s*.)config/${1}http/' phpmyadmin/config.inc.php
perl -pi -e 's/(PmaAbsoluteUri_DisableWarning..\s*=\s*)FALSE/${1}TRUE/' phpmyadmin/config.inc.php
perl -pi -e 's#phpMyAdmin-.\..\..#phpmyadmin#g' /etc/httpd/conf/httpd.conf
perl -pi -e 's#html/phpMyAdmin#html/phpmyadmin#g' /etc/httpd/conf/httpd.conf
And then restart Apache :)

What that code should do is completely remove phpmyadmin, reinstall it, and then update httpd.conf to point to the new phpmyadmin installation. You will be able to then access phpMyAdmin from /phpmyadmin.

Of course, this is untested code, and I'm not a system administrator. Use this code at your own risk. :)

Good luck, Phi1.
 
Last edited:
Might the first code work if I restart apache? Didn't do that...

I have a lot of accounts on the server, so I'm not too happy to reboot, that's why I'm asking before I test it...
 
:confused:
You should be able to just remove the old installation of phpmyadmin from the /var/www/html directory and extract the new version. Or the defaults in l0rdphi1's phpmyadmin installation tool worked just fine for me.

You don't need to restart apache unless you modify the httpd.conf file which is part of l0rdphi1's command in his post above.
 
phpMyAdmin2.6.0-pl2 has been released.
can we follow the same instructions provided in pl1?

thanks for any info...
 
I was wondering if perhaps the upgrade code above could be implemented into DirectAdmin's customapache build script?
That, and a way to upgrade squirrelmail would be very nice as ./build phpmyadmin and ./build squirrelmail ;)

John? :D

Phi1.

(P.S., I updated my upgrade code for pl2.)
 
That would be nice, but if that's the case, then there should be a way to keep the old config file. I have enabled all the extra pma tables to offer extra features to my customers and it would be nice if it could be preserved ;)
 
If a config file exists in /usr/local/directadmin/data/templates/custom/ (or whatever that directory is), DA would use that over any new config file.

Phi1.
 
on my server's phpmyadmin was a symlink to the actual phpmyadmin dir and needs to be phpMyAdmin, using phpmyadmin doesnt work.
 
Hello,

If you have DA 1.23.0, then you should be able to run:

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

to get the 2.6.0-pl1

John
 
Back
Top