Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-27 01:07:39

lcool
New Member
Registered: 2009-06-27
Posts: 3

[resolved] Problem with moving to a new host

Hi all – I’ve inherited a couple of textpattern sites, and I am having trouble moving them to a new server.

I followed the directions here: http://textbook.textpattern.net/wiki/index.php?title=Moving_Installation_from_one_Host_to_Another

I copied the db over and updated the config.php file. Now the front page and the admin pages appear fine, but when I click on a link to any other part of the site I get a 404 error.

I’m not getting any errors on the diagnostic page. I didn’t get any errors importing the db. What else can I look at to figure out what has gone wrong? Has anyone experienced this? I am totally new to textpattern, so I hope there is something simple I’m overlooking.

Thanks for taking the time to read this :)

Here is my diagnostic info:

Textpattern version: 4.0.8 (r3085)
Last Update: 2009-06-27 00:32:37/2009-06-27 00:31:55
Document root: /data/servers/www.mysite.org/ (/data/servers/www.mysite.org)
$path_to_site: /data/servers/www.mysite.org
Textpattern path: /data/servers/www.mysite.org/textpattern
Permanent link mode: section_title
Temporary directory path: /data/servers/www.mysite.org/textpattern/tmp
Site URL: www.mysite.org
PHP version: 5.2.6
gd_library: gd_info: 2.0 or higher, GIF, JPG, PNG
Server Local Time: 2009-06-26 21:05:42
MySQL: 5.0.41-log
Locale: en_US.UTF-8
Server: Apache/1.3.37 (Unix)
Apache version: Apache/1.3.37 (Unix)
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.4.21-47.0.1.ELsmp
Active plugins: mem_randimg_mod-0.6c, ako_youtube-0.2.1, ako_ifBrowser-0.2, tru_tags-1.9m, zem_contact_reborn-4.0.3.18, zem_contact_lang-4.0.3.5, asy_wondertag-0.5, rss_suparchive-0.18, kml_flashembed-1.4, tcm_is_this-0.6c, ajw_notepad_public-0.1, bas_flvplayer-0.2

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /db/opt/mysql/mysql-5.0.41-linux-i686-icc-glibc23/share/mysql/charsets/
19 Tables: textpattern is latin1, txp_category is latin1, txp_css is latin1, txp_discuss is latin1, txp_discuss_ipban is latin1, txp_discuss_nonce is latin1, txp_file is latin1, txp_form is latin1, txp_image is latin1, txp_lang is latin1, txp_link is latin1, txp_log is latin1, txp_note is latin1, txp_page is latin1, txp_plugin is latin1, txp_prefs is latin1, txp_priv is latin1, txp_section is latin1, txp_users is latin1

PHP extensions: libxml, xsl/0.1, xmlwriter/0.1, xmlrpc/0.51, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, sysvshm, sysvsem, session, pcre, SimpleXML/0.1, sockets, soap, SPL/0.2, standard/5.2.6, Reflection/0.1, posix, PDO/1.0.4dev, mbstring, json/1.2.1, iconv, hash/1.0, filter/0.11.0, date/5.2.6, curl, ctype, zlib/1.1, openssl, apache, mysql/1.0, eAccelerator/0.9.5.2, gd

Apache modules: http_core, mod_so, mod_perl, mod_vhost_alias, mod_env, mod_define, mod_log_config, mod_mime, mod_status, mod_info, mod_dir, mod_cgi, mod_alias, mod_rewrite, mod_access, mod_auth, mod_expires, mod_headers, mod_usertrack, mod_unique_id, mod_php5

Offline

#2 2009-06-27 13:33:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [resolved] Problem with moving to a new host

Does it work when you set permanent link mode to ‘messy’ (in Admin > Preferences)?

Sometimes you need to tweak .htaccess a bit to get clean URLs working, have a look at this thread.

Offline

#3 2009-06-28 14:21:28

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [resolved] Problem with moving to a new host

Are you sure that you moved the .htaccess file as well?

Offline

#4 2009-06-29 18:56:50

lcool
New Member
Registered: 2009-06-27
Posts: 3

Re: [resolved] Problem with moving to a new host

Thank you both!

Ok, this is kind of helping – if I set permanent link mode to ?=messy I can get to individual pages, but I still can’t get to the main section pages. I’ll work on tweaking the .htaccess file and see if I can get it working.

Offline

#5 2009-06-29 22:48:18

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [resolved] Problem with moving to a new host

lcool wrote:

if I set permanent link mode to ?=messy I can get to individual pages, but I still can’t get to the main section pages.

It’s possible that the links to your section pages are hardcoded (e.g. something like <a href="<txp:site_url /><txp:section />">linktext</a> or even href="http://site.com/section-name/"). If that’s the case, tweaking .htaccess is not going to help.

Links created with one of these tags will always follow the permanent link mode set in preferences:

  • <txp:section link="1" />
  • <txp:section>linktext</txp:section>
  • <txp:section_list />

Offline

#6 2009-06-30 00:00:41

lcool
New Member
Registered: 2009-06-27
Posts: 3

Re: [resolved] Problem with moving to a new host

Thanks! So, now I’m looking at the second of the 2 sites, same problem, but the diagnostics page is telling me “Clean URL test failed. “ The info link doesn’t work though … what does this mean?

Offline

#7 2009-06-30 18:20:50

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [resolved] Problem with moving to a new host

Does this FAQ help?

Offline

Board footer

Powered by FluxBB