Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

WordPress/Nginx Config

Debian/Ubuntu related topics
Locked
  • Print view
Advanced search
25 posts
  • 1
  • 2
  • 3
  • Next
Graham
Posts: 57
Joined: Wed Sep 25, 2013 6:32 pm

WordPress/Nginx Config

Post by Graham » Fri Oct 11, 2013 11:28 pm

Does anyone know if the nginx rules have changed for the ubuntu version?

On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
Top

KeiroD
Posts: 61
Joined: Fri Oct 11, 2013 8:35 pm

Re: WordPress/Nginx Config

Post by KeiroD » Sat Oct 12, 2013 12:44 am

Graham wrote:Does anyone know if the nginx rules have changed for the ubuntu version?

On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
Seems like this might be useful for you: http://codex.wordpress.org/Nginx

This one's more geared towards Ubuntu-based servers, which might work better for you. Let us know how it goes?
Top

Graham
Posts: 57
Joined: Wed Sep 25, 2013 6:32 pm

Re: WordPress/Nginx Config

Post by Graham » Sat Oct 12, 2013 12:56 am

KeiroD wrote:
Graham wrote:Does anyone know if the nginx rules have changed for the ubuntu version?

On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
Seems like this might be useful for you: http://codex.wordpress.org/Nginx

This one's more geared towards Ubuntu-based servers, which might work better for you. Let us know how it goes?
Thanks Keiro, have tried a few of the config changes there. Absolutely no luck so far.

After 19 hours it just doesn't look like I'm going to be able to get Vesta to support WordPress with URL rewriting on Ubuntu. I'm just starting to get frustrated now.

I've even tried running all of the forum posts that mention Wordpress through Google translate to see if there's any clues there.
Top

KeiroD
Posts: 61
Joined: Fri Oct 11, 2013 8:35 pm

Re: WordPress/Nginx Config

Post by KeiroD » Sat Oct 12, 2013 12:58 am

Graham wrote:
KeiroD wrote:
Graham wrote:Does anyone know if the nginx rules have changed for the ubuntu version?

On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
Seems like this might be useful for you: http://codex.wordpress.org/Nginx

This one's more geared towards Ubuntu-based servers, which might work better for you. Let us know how it goes?
Thanks Keiro, have tried a few of the config changes there. Absolutely no luck so far.

After 19 hours it just doesn't look like I'm going to be able to get Vesta to support WordPress with URL rewriting on Ubuntu. I'm just starting to get frustrated now.

I've even tried running all of the forum posts that mention Wordpress through Google translate to see if there's any clues there.
Hmm. I'll take a crack at it and let you know how it goes. I'll be playing with it shortly here.
Top

Graham
Posts: 57
Joined: Wed Sep 25, 2013 6:32 pm

Re: WordPress/Nginx Config

Post by Graham » Sat Oct 12, 2013 1:05 am

KeiroD wrote:Hmm. I'll take a crack at it and let you know how it goes. I'll be playing with it shortly here.
Best of luck, I'll have another go in the morning.
Top

KeiroD
Posts: 61
Joined: Fri Oct 11, 2013 8:35 pm

Re: WordPress/Nginx Config

Post by KeiroD » Sat Oct 12, 2013 1:14 am

Graham wrote:
KeiroD wrote:Hmm. I'll take a crack at it and let you know how it goes. I'll be playing with it shortly here.
Best of luck, I'll have another go in the morning.
Gotcha.

Interestingly... shorturls/url rewriting seems to work... at least, for the admin side, but not for the front-end. I wonder why? The error logs aren't displaying anything that I can see... however, I did notice this: When the short-url fails, it fails at the Apache2 side, not at the nginx side, so I suspect it's more an apach2 configuration on my end.

Still testing...

Edit: Got rewrites working perfectly.

Here's what I did:

Set up WordPress, install the nginx helper plugin (for shiggles, really, will uninstall shortly to see if it works regardless), then finally, I did: a2enmod rewrite in SSH for apache2 to enable rewrites.

Worked perfectly for me.

Edit2: Works with the plugin deactivated and deleted, as well. Nice!
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: WordPress/Nginx Config

Post by skid » Sat Oct 12, 2013 10:33 am

Graham, I will check this later today. Please give more details on how to reproduce it. I mean WP module/plugin name. Some urls and so on.
Top

Graham
Posts: 57
Joined: Wed Sep 25, 2013 6:32 pm

Re: WordPress/Nginx Config

Post by Graham » Sat Oct 12, 2013 10:37 am

skid wrote:Graham, I will check this later today. Please give more details on how to reproduce it. I mean WP module/plugin name. Some urls and so on.
Hi skid,

I'm not using any WP modules, I wanted to make sure URL rewriting was working first.

I'll pm you some further details if it'll help.

Thanks
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: WordPress/Nginx Config

Post by skid » Sat Oct 12, 2013 2:11 pm

I found the reason. Apache rewrite module is disabled by default.

Here is how you can enable it

Code: Select all

a2enmod rewrite
service apache2 restart
Top

Graham
Posts: 57
Joined: Wed Sep 25, 2013 6:32 pm

Re: WordPress/Nginx Config

Post by Graham » Sat Oct 12, 2013 2:18 pm

skid wrote:I found the reason. Apache rewrite module is disabled by default.

Here is how you can enable it

Code: Select all

a2enmod rewrite
service apache2 restart
thanks for that skid. I'd already tried both and no change, WP url rewrite still result in a 404 error.

I just tried it again to be sure and same problem. Is there something else I'm missing?
Top


Locked
  • Print view

25 posts
  • 1
  • 2
  • 3
  • Next

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password