Page 1 of 1
Changing Directory
Posted: Mon Feb 13, 2006 5:04 am
by morbryn
Serendipity comes as an add-on with my web hosting. When it was installed, it automatically created a Directory named "serendipity".
I want to change the directory name. What files must I modify in order for this to work, or should should I just download the software, do a new install and upload to the directory of my choice?
Thanks
Posted: Mon Feb 13, 2006 5:30 am
by judebert
Check out the FAQ at
http://s9y.org/11.html#A21. Since you'll be using the same database, you can ignore all the database operations. On the other hand, a backup wouldn't do any harm, and might be useful in the event of a catastrophe.
You could also go with a full install, but I don't know how Serendipity will react to an existing, populated database.
Posted: Mon Feb 13, 2006 6:39 am
by morbryn
I simply want to change the folder name from "serendipity" to "blog".
I've modified the directory name in the .htaccess file. I didn't change anything in the _config_local.inc.php file since the database user will remain the same.
All permissions are the same.
Should I change the paths in Admin before I change the folder name?
Posted: Mon Feb 13, 2006 10:16 am
by garvinhicking
You can safely change the path names in Admin after you renamed the directory.
Regards,
Garvin
Posted: Mon Feb 13, 2006 12:36 pm
by morbryn
Oh if only it were that simple.
I've changed the directory name.
I've changed the path in .htaccess.
I type in
www.mydomain.com/blog/ or
www.mydomain.com/blog/index.php
I get the following error: Warning: Smarty error: unable to read resource: "" in /home/content/l/d/w/ldw300k/html/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1088
The FAQ says to edit the serendipity_config_local.inc.php file. What edits should be made?
I've installed php scripts before. Usually, if I want to change a directory, I change the directory name in one or two lines, usually in config.php and I'm in business. Am I missing something?
Thanks again.
Posted: Mon Feb 13, 2006 12:49 pm
by garvinhicking
You must first immediately access your Admin panel, not the frontend, to change paths.
Open
www.mydomain.com/blog/serendipity_admin.php and then change the path settings. After that, your frontend will work again.
Best regards,
Garvin
Posted: Mon Feb 13, 2006 3:18 pm
by morbryn
Thanks!
That was the missing piece of information.
I never knew what the admin URL was because after my web host installation process was complete, I was taken directly to mydomain/serendipity/ .. I had to log in by clicking on Blog Administration.
Posted: Mon Feb 13, 2006 11:43 pm
by judebert
Thanks for finding that!
Hey, Garvin: if you can get me access to the wiki, I'll make this change in the FAQ.