So, I'm setting up a wordpress site on Digital Ocean's IaaS. I'm using nginx as a proxy and web server (instead of apache), so a LEMP stack. I was able to get my site up and running, though there are a couple of issues. First let me explain my setup more.
I have nginx set up to redirect a subdomain to a specific directory
/usr/share/nginx/www. A request with no subdomain will proxy to a Node.js app listening on port 8000.
usr/share/nginx/www directory I have:
wordpress directory I have installed wordpress. So, I access my wordpress site through
I am using php5-fpm and mysql-server installed using apt-get, on a Debian 7 VPS machine.
It works, and I'm able to view my wordpress site. However, here are the issues I'm having:
Permalinks don't work when I set it to the Post Name structure. When I access,
/wordpress/some-page I get the
/usr/share/nginx/www/index.html file sent to me.
Editing Images (Fixed)
I cannot edit an image in the Media admin panel. When I go to edit an image, I get a broken image in the editor. I also get a message in my browser's JS console saying:
Resource interpreted as Image but transferred with MIME type text/html: "http://subdomain.mydomain.me/wordpress/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=b25651da4f&postid=117&rand=34418".
apt-get install php5-gd
Fixed this issue by installing php5-gd. Apparently this was missing and is a dependency for WordPress. It's unfortunate that I had to find this out by digging through source code, rather than reading it in the tutorial and documentation that I've been using as a guide. Notice that there is no mention of needing php5-gd here: http://codex.wordpress.org/Installing_WordPress
There may be more issues that I'll run into, because I just set this site up.
I'm assuming all my issues involve some kind of configuration with either, WordPress, PHP, or nginx.