Magento on nginx: a surprisingly common issue

Often, Magento sites will be set up to have .html on the end of the category pages and product pages. However, often nginx is configured to treat .html like static content and “toss out” any query strings. This breaks pagination and layered navigation among other things. If you notice that pagination is not working in…
Read more

Install XDebug – the quick and painless way

If you find that you need to compile xdebug from source for whatever reason, have no fear! It’s actually quite simple to get it set up and running. I can get it set up on most servers in under 5 minutes. The directions below are for a local environment. Make sure that you haveĀ git installed,…
Read more

Debugging with XDebug – PHPStorm + Vagrant

Setting up XDebug on a Vagrant machine and figuring out how to set up PHPStorm on your host machine so that everything works smoothly can seem daunting, but it’s really easy! I’m going to go ahead and assume that you already have a development environment (LAMP, or other). Note: unless otherwise specified, you should follow…
Read more

Nginx URL rewriting fix for WordPress

Are you using nginx with wordpress, and stumped why your category and post pages aren’t working? Here’s a really simple trick I stumbled upon that fixed my problem instantly. if (!-e $request_filename){ rewrite ^(.*)$ /index.php?q=$1 last; break; } Putting this after my “location ~ \.php$” block fixed the problem, and I was able to load…
Read more

Mutt — a terminal e-mail client

When I find myself needing to check e-mail quickly and without much fuss, I turn to mutt. Especially if I need to dig through massive amounts of e-mail. It’s very simple to set up and run, but has a huge array of features. It can be extended and tweaked to send e-mail, with attachments. If…
Read more