I need a bash script that will install phpMyAdmin automatically, like editing the config file, chmoding it, then changing directories. Its all pretty easy.

Here are the directions for phpMyAdmin: http://www.phpmyadmin.net/documentation/#quick_install

You may also do it in PHP, if you can. Thanks and good luck.