SMF Support > Install and Upgrade Help

How to move SMF to another installation directory?

<< < (2/2)

emanuele:
@ Sybille Yates: sorry for the late reply, maybe you already moved your forum, BTW the sequence you posted is correct. :)
The only step missing is the database, but that may not be necessary in your case.

support1:
You can just copy over the files/directories in the current forum directory to the new forum directory. Then edit the Settings.php file in the new directory and replace all references to the old directory to the new directory.

For example, to move '/messageboard' to '/forum'.

1). Copy all the files/directories in the '/messageboard' directory to '/forum' directory preserving the permission & ownership of each file/directory.

[  In LInux u can use the following command]
# cp -pr messageboard forum

2). Then edit Settings.php file in the '/forum' directory [new directory] and change the following settings.

$boardurl = '.../messageboard';  -->  $boardurl = 'http://.../forum';
$boarddir = '.../messageboard';  --> $boarddir = '.../forum';
$sourcedir = '.../messageboard/Sources';  -->  $sourcedir = '.../forum/Sources';

$cachedir = '.../messageboard/cache';  --> $cachedir = '.../forum/cache';

Just change the 'messageboard' to 'forum' in the above settings. I haven't included the full path [ replaced with ...], but you need to add it according to your installation path.

CapadY:
Please, don't bump such old topics.

Especialy not when they are solved.

Navigation

[0] Message Index

[*] Previous page

Go to full version