Facebook OAuth in PHP and PHP with Nginx

Finally got off my lazy butt to fix WhereMyFriendsBe (sorry guys who weren't able to use it while it was down...though if it didn't work you probably didn't bother to even care about the founders let alone their blogs). 

It had been down for the past few weeks because Facebook, in their infinite wisdom, decided that if you did not comply and switch your code to implement their new OAuth system they would shut you out. Well the switch was much easier than I expected. Just replaced the old Facebook class with the new one, and changed a few things here and there (if anyone wants details let me know).

 

The other thing I did was port over WhereMyFriendsBe from our DreamHost account to our ec2 server running Nginx. Ran into the problem of getting PHP installed and using it. Here's a nice little link to the tutorial I followed essentially step by step to get it working.

http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-9.04

 

More Nginx configuration solutions

I'm mostly putting these up here so that I can remember them...

But for those of you who are getting your (free) SSL certificates from Comodo, I found this link that tells you how/what to concatenate your .crt files into for Nginx: http://forum.nginx.org/read.php?11,125477

And here is a server configuration file for Nginx that I was able to use to figure out how to properly serve my static files: https://code.djangoproject.com/wiki/ServerArrangements

Just got our site working with Nginx (was using Apache)!

Thanks a lot to the tutorial here:

http://www.dmclaughlin.com/2008/11/03/complete-guide-to-deploying-django-on-ubuntu-with-nginx-fastcgi-and-mysql/

We were currently running Apache (which btw took years to configure...) and I just spun up an EC2 instance and got our site deployed on it using Nginx super quickly! Will maybe write more details on this later but that tutorial really guided me step-by-step and worked perfectly...

Now I have to go through my old SSL tutorial and set that up. Overall though...feelin like a baus.