Question

Nginx & Wordpress issues

  • Posted May 23, 2013

Hello!

I’m having a hard time with nginx & wordpress. Specifically I installed/configured WP on http://www.busybabybook.com/blog/ and all seems to be ok EXCEPT for the fact that in the wp-admin/ I can’t see: Media, Posts return an “Invalid post type”, there are no Pages (but in fact I have 2: Contact and About).

Also, i would like to redirect www.busybabybook.com to www.busybabybook.com/blog/ but i’ve got no idea how to make this work without any problems in nginx.

Thank you in advance for helping out! Regards, Alex

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

From what I’ve read elsewhere, this error “Invalid post type” can be caused by different things. <br>I found, however, that in my case it was caused by the line that the Nginx devs suggest inserting into your php block from http://wiki.nginx.org/WordPress: <br> <br> fastcgi_split_path_info ^(/wordpress)(/.*)$; <br> <br>Commenting this line out and restarting nginx solved the issue. It also solved a problem that was racking my brain where I would get an error: “You are not authorized to view this page.” while accessing certain Admin pages. The Nginx support page might be out of date. <br> <br>I’m a total noob on regex and nginx blocks so I don;t fully understand what it was supposed to do in the first place. <br>Hope this helps. <br>

@alex: Actually, try this first: http://wiki.nginx.org/WordPress - “Non-root try_files to URL redirect”. <br>If that doesn’t fix your problem, see my previous comment.

@alex: I suggest you take a look at http://codex.wordpress.org/Nginx, especially the “WordPress Multisite Subdirectory rules” section.

The problem is that I need to install Wordpress in a folder /blog not in the root folder. <br> <br>This is where Nginx gives me issues :)

Oh and once you’re done install memcache and the w3 total cache and it freakin’ fly’s!

I’d just start again dude, if you use the instructions in the articles and tutorials there is a step by step guide which is spot on! <br> <br>https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-ubuntu-12-04

Really? Nobody to help out?