Downgrade port in freebsd

 

Problem: I already upgrade my phpmyadmin (phpmyadmin V.3.xx) but cant read mysql because my mysql still the older version (mysql version 4.xx). so its make difficult for my client when upload his/her databases. Because they ussually use phpmyadmin for upload it. so today i must downgrade my phpmyadmin to older version. its not difficult but its not easy also. its just tricky. here I explain step by step downgrading phpmyadmin in freebsd,

install portdowngrade first,
webserver# cd /usr/ports/ports-mgmt/portdowngrade
webserver# make install clean

now, lets downgrade our phpmyadmin,
webserver# /usr/local/sbin/portdowngrade phpmyadmin -s:pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs

portdowngrade 0.6 by Heiner Eichmann
Please note, that nothing is changed in the ports tree
unless it is explicitly permitted in step 6!

Seeking port phpmyadmin …

Found several matches:
1: databases/phpmyadmin
2: databases/phpmyadmin211

Please choose one: ——-> i choose 1

then follow the instruction

note: -s:pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs is the specific server, you can choose any server you like.

after finish downgrading, its time to uninstall your existing phpmyadmin.
webserver# cd /usr/ports/databases/phpmyadmin
webserver# make deinstall

now lets install your phpmyadmin
webserver# make install clean

=> phpmyadmin — cross-site scripting vulnerability.
Reference:
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/databases/phpmyadmin.
*** Error code 1

Stop in /usr/ports/databases/phpmyadmin.

if you find that error, dont worry because freebsd told us that our application has vurnelability.( because our phpmyadmin is the older version right?)

we can use -DDISABLE_VULNERABILITIES to ignore the vurnelability, here should we do:

webserver# make install clean -DDISABLE_VULNERABILITIES

now lets check your phpmyadmin, its back to older version right?
but you must know the risk if you downgrade any application, beware of the vurnelability.
its not recommended at all , but if must to do, why not?

 

This entry was posted on Monday, December 22nd, 2008 at 2:36 am and is filed under FreeBSD. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply