Page 1 of 1

Possible to move Serendipity folder?

Posted: Wed Jul 13, 2005 10:59 pm
by sun112
Hi!

I do have an installation into domain /serendipity.
Would it be possbile to move all content of /serendipity to the root directory / and have it working from there, when changing all paths in the config menu?
What do you think?
sun112

Re: Possible to move Serendipity folder?

Posted: Thu Jul 14, 2005 2:34 pm
by garvinhicking
You can do that with the following steps:

1. Make a backup of your files and serendipity

2. Copy all your files from /serendipity to /, including all subdirectories.

3. Make sure the files ".htaccess" and "serendipity_config_local.inc.php" were copied. If not, create a PHP script "perm.php":

Code: Select all

<?php
chmod('.htaccess', 0777);
chmod('serendipity_config_local.inc.php', 0777);
?>
4. Edit the file .htaccess and replace all occurences of "/serendipity/" with "/".

5. Open your http://yourblog/serendipity_admin.php admin panel. Go to Configuration. Now change all paths that contain a "/serendipity/" to "/" only and save your changes.

Now everything should work. If you alread had content in your old location, you may need to edit the entries and replace links to images from "/serendipity/" to "/" only.

You might also need to use phpMyAdmin to browse your serendipity_images and serendipity_plugins table and adjust the paths that are mentioned in the "path" column there.

HTH,
Garvin