Sunday, November 13, 2011

How to watch a log file in realtime in Ubuntu Linux

There are times when I'm debugging code on a linux box that I want to see what's being logged by a Web Site or Web Application. What I used to have to do was do something on the website, then open up a terminal in Ubuntu (or any other linux distro for that matter) and view the logfile with either vim, nano, cat | less or gvim.

How I used text editors to do it
I use VIM as my default text editor on Ubuntu or any other linux distros (such as redhat, centos, debian, linux mint) that I work on.

A few weeks from now I used to use vim to open the log file, then the :e (edit) command to

view your log file in real time on ubuntu

Monday, January 3, 2011

How to fix phpmyadmin error: "Connection for controluser as defined in your configuration failed"

"Connection for controluser as defined in your configuration failed" It's one of those small, annoying messages that appear out of the way on your screen, but still catches your eye once in a while especially when you're deep in thought about how to building a multi-join query in the SQL tab of phpmyadmin.

Well, it annoyed me today so much that I finally decided to do something about it and finally take a look. I opened up the PHPMyAdmin config file located at /etc/phpmyadmin/config-db.php on Ubuntu Maverick Meerkat. There's a default username and password in $dbuser and $dbpass

Fix "Connection for controluser as defined in your configuration failed" in PHPMyAdmin on Ubuntu.