WordPress with php5-fpm and nginx

Ah, my problem ended up stemming from an issue with php5-fpm. Essentially, there were php5-fpm services running that were “old” and thus when I tried to access mysql from the web, it wasn’t detected. But when I tried to access it via cli, it was detected. That narrowed it down to php5-fpm for me, and then I had to do:

sudo killall php5-fpm
sudo service php5-fpm start

And voila, the web side started recognizing mysql just fine!

I’m still not sure what exactly led to a php-fpm process that the service wasn’t aware of to restart, but it’s something to watch out for.

error code: 523