So I got XDebug working a couple of weekends ago. After much fun trying to install KCacheGrind on Fedora and setting up X forwarding to my Windows box I finally saw the fruits of my labour.
I was impressed with the Call Graph which shows the flow of execution. This is a framework I spent some time developing in April for a music store. I hope to make more use of this profiling at work some time.
Ironically just as I had got this working my Fedora install starts to play up (after running fine with no X for 18 months beforehand). The filesystem would become read-only after several hours idling. Turns out a part of the filesystem was corrupt; I was constantly having to reboot and run fsck to correct these errors. However yesterday fsck took ages to sort things out and more and more files were being lost so I figured it was time to re-install.
Fedora has been my distribution of choice for a couple of years but this is the second time I’ve had to wipe the drive due to disk errors. I think this is largely due to heat issues, my linux box is a shuttle PC and it gets pretty hot compressing off-site backups from this co-located server come 5am! After re-partitioning, formatting and running check disk in Windows, the drive seemed completely healthy (most odd considering on boot it was reporting “S.M.A.R.T bad” errors). When re-formatting in Slackware and checking for bad sectors – none found! Strange albeit good news I guess.
So why Slackware? Well after the messing around required to get KDE up and running on Fedora I wanted to move to a pro-KDE distribution. I’m not a fan of managed distro’s like Gentoo (emerge yuk!). Call me a control freak but too much happens behind the scenes, I like to install the major applications from source so unexpected changes don’t occur when you update system packages. I also prefer the default layout of Apache/PHP/MySQL, upgrades are easier, no waiting on your fav distro to prepare customised packages.
Slackware has thrown me a few curve balls early on though (just getting vim working correctly!). I forgot to install atk, which appears to be a GNOME library (so much for a GNOME free system), and ‘vi’ was symlinked to elvis (which from my brief experience seems horrible). Turns out Slackware is BSD init based not System V, meaning it doesn’t use the rc.1, rc.2 directories like Redhat etc. This was enough to trip me up when trying to install the mysql.server init.d script, easily solved though:
cp support-files/mysql.server /etc/rc.d/rc.mysqld
comments
No comments for this post. Be the first to respond!