[BNM] Moving Wordpress to a new server and permalinks not working

27 views
Skip to first unread message

Oliver Marshall

unread,
May 19, 2011, 12:16:49 PM5/19/11
to Brighton New Media (bnmlist@brightonnewmedia.org)
Hi chaps,

I've moved our wordpress install to a new server to do some prototyping on our new site (WOOP!). I've moved the wordpress directory to the new box, imported the entire DB, basically copied the wordpress instructions for migrating the install to a new server.

The front page works fine and all the plugins show as activated and show the correct settings. However none of the permalinks work. You should be able to go to /services and get the services page, /keepintouch for the contacts page etc. However all I get is an apache error stating that /services wasn't found. This also happens if you create a new page and assign it a new permalink.

Can anything think of what I may have missed?

Olly
--

BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist

BNM powered by Wessex Networks:
http://www.wessexnetworks.com

Oliver Marshall

unread,
May 19, 2011, 12:21:49 PM5/19/11
to Brighton New Media
One thing I have noticed is the apache error.log shows

File does not exist: /var/www/www.g2support.com/html/services

When accessing the /services permalink (and similar entries for other links). So it's trying to access the permalinks as actual dirs rather than translating it to the page ID in wordpress.

I have hayfever so none of this may make any sense or indeed be real.

Olly


--
G2 Support
Network Support : Online Backups : Server Management

Web: www.g2support.com
Twitter: g2support
Newsletter: www.g2support.com/newsletter

Hi chaps,

Olly
--

BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist

--
Network Support
Online Backups
Server Management

Tel: 0845 307 3443
Email: oliver....@g2support.com
Web: http://www.g2support.com
Twitter: g2support
Newsletter: http://www.g2support.com/newsletter
Mail: 2 Roundhill Road, Brighton, Sussex, BN2 3RF

Have you said something nice about us to a friend or colleague ? Let us say thanks. Find out more at www.g2support.com/referral

G2 Support LLP is registered at Mill House, 103 Holmes Avenue, HOVE
BN3 7LE. Our registered company number is OC316341.

Hazlitt Eastman

unread,
May 19, 2011, 12:23:27 PM5/19/11
to Brighton New Media
Have you checked your .htaccess file?

Hazlitt


················································································

Hazlitt Eastman

Web development, PHP, XHTML/CSS, Wordpress, Codeigniter, Drupal.

e: haz...@manta9.com
m: 07768 645 175
w: www.manta9.com

Manta9 Ltd, UK company no: 7071364, VAT : 980 9630 85

·······························································································································

This e-mail and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you are not the intended recipient you may not use, disseminate, forward, print or copy this e-mail, and please notify the sender that you have received it in error.

Joe Aliferis

unread,
May 19, 2011, 12:27:02 PM5/19/11
to Brighton New Media
have you clicked the permalinks section in the settings ?

joe

Oliver Marshall

unread,
May 19, 2011, 12:28:23 PM5/19/11
to Brighton New Media
The permalink settings in wpadmin are the same as on the old install...if that helps.


--
G2 Support
Network Support : Online Backups : Server Management

Web: www.g2support.com
Twitter: g2support
Newsletter: www.g2support.com/newsletter

--

BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist

--
Network Support
Online Backups
Server Management

Tel: 0845 307 3443
Email: oliver....@g2support.com
Web: http://www.g2support.com
Twitter: g2support
Newsletter: http://www.g2support.com/newsletter
Mail: 2 Roundhill Road, Brighton, Sussex, BN2 3RF

Have you said something nice about us to a friend or colleague ? Let us say thanks. Find out more at www.g2support.com/referral

G2 Support LLP is registered at Mill House, 103 Holmes Avenue, HOVE
BN3 7LE. Our registered company number is OC316341.

Oliver Marshall

unread,
May 19, 2011, 12:31:46 PM5/19/11
to Brighton New Media
.htaccess shows;


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


And the rewrite mod is enabled in apache


--
G2 Support
Network Support : Online Backups : Server Management

Web: www.g2support.com
Twitter: g2support
Newsletter: www.g2support.com/newsletter


-----Original Message-----
From: bnmlist...@brightonnewmedia.org [mailto:bnmlist...@brightonnewmedia.org] On Behalf Of Hazlitt Eastman
Sent: 19 May 2011 17:23
To: Brighton New Media
Subject: Re: [BNM] Moving Wordpress to a new server and permalinks not working

Have you checked your .htaccess file?

Hazlitt

On 19 May 2011, at 17:16, Oliver Marshall wrote:

> Hi chaps,
>
> I've moved our wordpress install to a new server to do some prototyping on our new site (WOOP!). I've moved the wordpress directory to the new box, imported the entire DB, basically copied the wordpress instructions for migrating the install to a new server.
>
> The front page works fine and all the plugins show as activated and show the correct settings. However none of the permalinks work. You should be able to go to /services and get the services page, /keepintouch for the contacts page etc. However all I get is an apache error stating that /services wasn't found. This also happens if you create a new page and assign it a new permalink.
>
> Can anything think of what I may have missed?
>
> Olly
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com


********************************************************************************

Hazlitt Eastman

Web development, PHP, XHTML/CSS, Wordpress, Codeigniter, Drupal.

e: haz...@manta9.com
m: 07768 645 175
w: www.manta9.com

Manta9 Ltd, UK company no: 7071364, VAT : 980 9630 85

*******************************************************************************************************************************

This e-mail and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you are not the intended recipient you may not use, disseminate, forward, print or copy this e-mail, and please notify the sender that you have received it in error.

--

BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist

BNM powered by Wessex Networks:
http://www.wessexnetworks.com

--
Network Support
Online Backups
Server Management

Tel: 0845 307 3443
Email: oliver....@g2support.com
Web: http://www.g2support.com
Twitter: g2support
Newsletter: http://www.g2support.com/newsletter
Mail: 2 Roundhill Road, Brighton, Sussex, BN2 3RF

Have you said something nice about us to a friend or colleague ? Let us say thanks. Find out more at www.g2support.com/referral

G2 Support LLP is registered at Mill House, 103 Holmes Avenue, HOVE
BN3 7LE. Our registered company number is OC316341.

Joe Aliferis

unread,
May 19, 2011, 12:33:07 PM5/19/11
to Brighton New Media
I recall a WP nuance, that you have to visit the specific permalink
section in settings to sort it out after a move

joe

Oliver Marshall

unread,
May 19, 2011, 12:36:17 PM5/19/11
to Brighton New Media
Thought about that:)_

I've gone in to the permalinks settings and just hit save in each tab. No errors showing at all.

Still nothing :(

Joe Aliferis

unread,
May 19, 2011, 12:37:51 PM5/19/11
to Brighton New Media
htaccess writable ?

Thomas Parslow

unread,
May 19, 2011, 1:20:39 PM5/19/11
to Brighton New Media
Hi Oliver,

I don't know Wordpress but this is definitely a Apache config problem
not a problem with the Wordpress settings.

The problem is probably one of the following:

- .htaccess file is world writable (as Joe suggested)
- mod_rewrite isn't enabled.
Make sure you have the following lines in your apache conf file
(and they aren't commented):
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
- htaccess files are disabled in the Apache conf.
Add the line "AllowOverride All" to the location section.

Regards,

Tom

--
Thomas Parslow
Freelance Developer
Django, Python, Javascript and more!

http://almostobsolete.net
+44 (0) 7951261227

Oliver Marshall

unread,
May 20, 2011, 3:43:09 AM5/20/11
to Brighton New Media
Hi chaps,

Thomas wins the free pint of Kudos. It was the "AllowOverride All" remark
that got it. Teach me to go with the default settings!

Now on to the next dozen problems.

Olly

On 19/05/2011 18:20, "Thomas Parslow" <t...@almostobsolete.net> wrote:

>Hi Oliver,
>
>I don't know Wordpress but this is definitely a Apache config problem
>not a problem with the Wordpress settings.
>
>The problem is probably one of the following:
>
>- .htaccess file is world writable (as Joe suggested)
>- mod_rewrite isn't enabled.
> Make sure you have the following lines in your apache conf file
>(and they aren't commented):
> LoadModule rewrite_module modules/mod_rewrite.so
> AddModule mod_rewrite.c
>- htaccess files are disabled in the Apache conf.
> Add the line "

--

Reply all
Reply to author
Forward
0 new messages