Homepage
|
Blog
|
Download
|
User Forums
|
Plugins / Templates
|
Serendipity
PHP-powered, flexible Blogging/CMS application
Welcome
guest
!
[
Preferences
]
»
Documentation
>
Expert
>
Maintenance
>
Moving Serendipity to a New Directory
Diff:
Moving Serendipity to a New Directory
Ownership:
rw-rw-r-- judebert docuteam
Modified:
15 Dec 06, 15:23
Modified by:
Judebert (judebert)
Rev.:
2 (Old)
Ownership:
rw-rw-r-- judebert docuteam
Modified:
14 Nov 11, 12:23
Modified by:
Garvin Hicking (Garvin)
Rev.:
3 (Current)
+ %TITLE%
This information comes courtesy of *Azel*, of the Serendipity Forums, who graciously allowed us to add it here. Thanks, Azel!
+ %TITLE%
This information comes courtesy of *Azel*, of the Serendipity Forums, who graciously allowed us to add it here. Thanks, Azel!
A german article and a small shell script to achieve a similar result is here: ((http://www.jd-weblog.de/index.php?/archives/3-Pfade-in-Serendipity-aendern-die-ganze-Wahrheit.html))
(Note: this article uses phpMyAdmin to access the database and make changes. You can use any tool you like, but the pictures provided show phpMyAdmin screens.)
It's really a simple three-step process:
<toc>
The easiest thing you can do is this: (with pictures!)
+ Make a backup!
(You can skip this step if you don't have a whole lot of entries and don't mind recreating them.) Make a backup of your database through phpMyAdmin. This is where you can gain access to your database tables (where s9y stores its information). On the index page of phpMyAdmin, you should see something like this:
<plugin embed src="http://aetheric-shade.org/uploads/phpma1.jpg" alt="phpMyAdmin database backup">
Click on Export.
---
Select which database you would like to export.
<plugin embed src="http://aetheric-shade.org/uploads/phpma2.jpg" alt="phpMyAdmin database selection">
---
<plugin embed src="http://aetheric-shade.org/uploads/phpma3.jpg" alt="phpMyAdmin export options">
Click the "Go" button on the bottom right to download a copy of your database file.
+ Change the configured path to Serendipity
While you're in phpMyAdmin, click to open serendipity_config in your database.
<plugin embed src="http://aetheric-shade.org/uploads/phpma4.jpg" alt="phpMyAdmin selection for Serendipity configuration">
---
Click on Browse.
<plugin embed src="http://aetheric-shade.org/uploads/phpma5.jpg" alt="phpMyAdmin browsing Serendipity configuration">
---
Change the serendipityPath, serendipityHTTPPath, and baseURL to their new values.
<plugin embed src="http://aetheric-shade.org/uploads/phpma6.jpg" alt="phpMyAdmin Serendipity configuration values to change">
---
<plugin embed src="http://aetheric-shade.org/uploads/phpma7.jpg" alt="phpMyAdmin Serendipity configuration values">
---
So your new settings should say:
<table border frame="border" cellspacing="0" cellpadding="10">
|serendipityPath | /path/to/blog/
|serendipityHTTPPath | /blog/
|baseURL | /<noop>http://yoursite.com/blog/</noop>/
</table>
+ Rename the folder
Change your folder name in your FTP client (or whatever tool your server admin gives you) from serendipity to blog.
I hope that sounds easy enough and not too intimidating.
+ Special Notes
++ SQLite users
A similar tool for SQLite is ((http://www.sqlitemanager.org/)(SQLiteManager)).
Note that it's designed for SQLite3, so users of SQLite2 may have to modify some code. In particular, Debian/Sarge users must modify line 4 of SQLiteAUtoConnect.class.php to remove the include for sqlite3.class.php.
(Note: this article uses phpMyAdmin to access the database and make changes. You can use any tool you like, but the pictures provided show phpMyAdmin screens.)
It's really a simple three-step process:
<toc>
The easiest thing you can do is this: (with pictures!)
+ Make a backup!
(You can skip this step if you don't have a whole lot of entries and don't mind recreating them.) Make a backup of your database through phpMyAdmin. This is where you can gain access to your database tables (where s9y stores its information). On the index page of phpMyAdmin, you should see something like this:
<plugin embed src="http://aetheric-shade.org/uploads/phpma1.jpg" alt="phpMyAdmin database backup">
Click on Export.
---
Select which database you would like to export.
<plugin embed src="http://aetheric-shade.org/uploads/phpma2.jpg" alt="phpMyAdmin database selection">
---
<plugin embed src="http://aetheric-shade.org/uploads/phpma3.jpg" alt="phpMyAdmin export options">
Click the "Go" button on the bottom right to download a copy of your database file.
+ Change the configured path to Serendipity
While you're in phpMyAdmin, click to open serendipity_config in your database.
<plugin embed src="http://aetheric-shade.org/uploads/phpma4.jpg" alt="phpMyAdmin selection for Serendipity configuration">
---
Click on Browse.
<plugin embed src="http://aetheric-shade.org/uploads/phpma5.jpg" alt="phpMyAdmin browsing Serendipity configuration">
---
Change the serendipityPath, serendipityHTTPPath, and baseURL to their new values.
<plugin embed src="http://aetheric-shade.org/uploads/phpma6.jpg" alt="phpMyAdmin Serendipity configuration values to change">
---
<plugin embed src="http://aetheric-shade.org/uploads/phpma7.jpg" alt="phpMyAdmin Serendipity configuration values">
---
So your new settings should say:
<table border frame="border" cellspacing="0" cellpadding="10">
|serendipityPath | /path/to/blog/
|serendipityHTTPPath | /blog/
|baseURL | /<noop>http://yoursite.com/blog/</noop>/
</table>
+ Rename the folder
Change your folder name in your FTP client (or whatever tool your server admin gives you) from serendipity to blog.
I hope that sounds easy enough and not too intimidating.
+ Special Notes
++ SQLite users
A similar tool for SQLite is ((http://www.sqlitemanager.org/)(SQLiteManager)).
Note that it's designed for SQLite3, so users of SQLite2 may have to modify some code. In particular, Debian/Sarge users must modify line 4 of SQLiteAUtoConnect.class.php to remove the include for sqlite3.class.php.
Legend
Removed
Changed
Added