Thursday, May 11, 2006

Getting ajaxMyTop to work on Ubuntu/Dapper

I'm sitting in MySQL bootcamp today and wanted to have some ajaxMyTop eyecandy running on my laptop while doing the labs.

Unfortunately ajaxMyTop is written to PHP5 and I'm using PHP4 on Ubuntu/Dapper. These are the steps needed to get it working:

* Install php4-domxml (apt-get install php4-domxml)

* Restart apache2 ( sudo /etc/init.d/apache2 restart )

* Grab the modified processlist.php from the ajaxMyTop forum on sourceforge here and replace the one provided by the 0.5.5 kit.

* Create a dbconfig.inc.php that looks something like this:


<?
$dbHost = "localhost";
$dbUser = "root";
$dbPass = "YOUR-ROOT-PASSWORD";
$db = mysql_connect($dbHost, $dbUser, $dbPass);
?>