Possible to move Serendipity folder?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
sun112

Possible to move Serendipity folder?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Possible to move Serendipity folder?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply