Jul/090
Misc: Error 500 – Internal server error while editing posts – unable to view wordpress dashboard items
If it’s only happening to a few posts or you can’t see all items/boxes in your dashboard then it’s your php module starving for more memory.
If you’re hosting the site, edit php.ini and add give it more memory. If you don’t know where php.ini is use the following command:
find / -name "php.ini"
Find memory section and dedicate what you want.
If your site is hosted, then create a php.ini file in wp-admin directory, and add the following line:
memory=15MB
If 15 is not good enough try 20 or 30.
Jul/090
Riverbed Steelhead: Purdy kernel panic message :)
So I was playing around with a brand new Steelhead web accelerator appliance. Curiosity made me try to virtualize the darn thing and see if I can get it to work with multiple NICS and without the fancy box. Since nothing is impossible and no one was around to stop me, I created an image of the drive and converted it to a VMware Server virtual appliance… it MUST be a *nix flavor, right? No doubt! Who the heck would ever think of Redmond when it comes to creativity?
I was right because the first thing I ran into was a kernel panic. I decided to screenshot and post it for everyone to see… it’s “slightly” different than a normal kernel panic:

There it is. I leave it to you to figure out why I liked it. To the Riverbed guys: nice touch
P.S. Don’t ask about what happened after I took care of the panicing kernel… hush!
Jul/093
Linux: vsftpd and symbolic links
vsftpd is all about security, and that’s why you cannot access linked directories through vsftpd with any ftp client. My arguement is that if you know how to use symlinks, or are careful enough not to link directories you don’t want to share then who’s vsftpd to butt in and completely disallow you to use such convenient feature of an OS? Reminds me of Windows Server type security… they block IE by default so that you have to either allow every single site, or disable IE ESC altogether.
Here is my convenient workaround: use mount bind!
mount --bind /sourcedirectory /destinationdirectory
You can either use @reboot cron job to have the directories mounted, or mount though fstab by adding the following line:
/directory-you-want-to-mount /destination-directory none bind
Haa… gotcha, but don’t go too fast! This is mount, not ln and will NOT create a mount point in your destination directory. For instance, if you want to mount /home/share to /home/user/share you will need to create /home/user/share first, then mount. Also keep in mind that if you have a copy or rsync job to copy contents of /home/share AND /home/user recursively, you will create two full copies of /home/share directory. One in /home/share and one in /home/user/share. Exclude one of the directories from your cp or rsync job.
Jul/090
Debian: dmesg output contains “Error: Driver ‘pcspkr’ is already registered, aborting…”
Here is what’s transpiring: the boot sequence attempts to load two different drivers for the integrated PC speaker. To solve the problem install alsa-base package:
aptitude install alsa-base
And then execute the following command:
echo blacklist snd-pcsp >> /etc/modprobe.d/alsa-base-blacklist