Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-02-03 04:38:43
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
... Change the blog directory after a move?
I used to have a working textpattern blog installed in /directory1, and I have recently been forced to change the blog directory to /directory2. The database is the same, and I have adjusted config.php to reflect /directory2; but now I can no longer access the admin tools (when I point a browser to /directory2/textpattern).
Does anyone know how to fix this? I’m guessing I have to modify some fields in the database, but I’m not sure which ones.
Offline
#2 2007-02-03 05:54:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: ... Change the blog directory after a move?
I’m guessing I have to modify some fields in the database…
No, you should not have to.
Can you post what your config.php looks like? Censor out your database username and password, of course.
Last edited by Mary (2007-02-03 05:55:22)
Offline
#3 2007-02-03 15:57:27
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
Re: ... Change the blog directory after a move?
Sure thing; here is the config.php:
<?php
$txpcfg[‘db’] = ‘blackadder’;
$txpcfg[‘user’] = ‘xxx’;
$txpcfg[‘pass’] = ‘xxx’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘/var/www/directory2’;
$txpcfg[‘dbcharset’] = ‘latin1’;
?>
Everything is the same except switching the “1” to a “2” in txpath – as far as I know. Thanks.
Offline
Re: ... Change the blog directory after a move?
Changing the config.php should allow you to get into the admin just fine, you might try clearing your browser cache if you are having issues.
After you’re in to the admin side, change in Admin -> Preferences -> Advanced:
Temporary directory path
File directory path
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#5 2007-02-03 17:41:56
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
Re: ... Change the blog directory after a move?
Strangely, although the config.php has been modified (as above), it isn’t working. When I point the browser to textpattern/, it kicks me back to the front page of the original site (which still resides in the original directory). When I point the browser to textpattern/index.php, I get the message that the config.php is corrupt or missing (permissions on it seems fine).
Offline
#6 2007-02-04 04:33:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: ... Change the blog directory after a move?
…which still resides in the original directory…
uh, that means you have not moved everything properly: you have to move all your Textpattern files to their new directory.
For example, you had before:
- http://yourdomain.com/directory1
- http://yourdomain.com/directory1/textpattern
- http://yourdomain.com/directory1/textpattern/config.php
You should now have:
- http://yourdomain.com/directory2
- http://yourdomain.com/directory2/textpattern
- http://yourdomain.com/directory2/textpattern/config.php
Offline
#7 2007-02-04 16:07:56
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
Re: ... Change the blog directory after a move?
Mary wrote:
uh, that means you have not moved everything properly: you have to move all your Textpattern files to their new directory.
No, I should have been clearer about that. I have moved all of the files; it’s just that there are duplicate files from the original textpattern directory that have not been deleted yet (just in case I need to revert).
Offline
#8 2007-02-05 09:35:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: ... Change the blog directory after a move?
There’s nothing about Textpattern that should be redirecting you anywhere.
Would you post the contents of your .htaccess file?
Offline
#9 2007-02-05 17:45:43
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
Re: ... Change the blog directory after a move?
Sure thing – although I think it is pretty standard:
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule>#php_value register_globals 0
Offline
#10 2007-02-06 02:07:34
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: ... Change the blog directory after a move?
Okay, first, uncomment this line:
DirectoryIndex index.php index.html
Next, verify that your config.php is correctly located within the “textpattern” directory:
http://yourdomain.com/directory2/textpattern/config.php
Do you still get booted to:
http://yourdomain.com/directory1
Offline
#11 2007-02-06 04:25:34
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
Re: ... Change the blog directory after a move?
Ah hah, thank you for your suggestion. I don’t get booted out now. But I still get the message:
config.php is missing or corrupt. To install Textpattern, visit textpattern/setup/
At this point, I’ve tried playing around with many different configurations of config.php, but to no avail. Any other ideas as to what could cause this problem? Would this happen if, for some reason, textpattern could not access the database?
Offline
#12 2007-02-07 05:42:47
- Wandering Mango
- New Member
- Registered: 2007-02-03
- Posts: 8
Re: ... Change the blog directory after a move?
Well, I solved the problem by doing a dump of the database, nuking the database and doing a fresh install of textpattern in the new directory, and then uploading the database dump over the database that textpattern created. Everything works fine now. Thanks hcgtv and especially Mary for your help; I appreciate it.
Offline