Changing Directory

Having trouble installing serendipity?
Post Reply
morbryn
Posts: 4
Joined: Mon Feb 13, 2006 4:57 am

Changing Directory

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
morbryn
Posts: 4
Joined: Mon Feb 13, 2006 4:57 am

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

Post by garvinhicking »

You can safely change the path names in Admin after you renamed the directory. :-)

Regards,
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/
morbryn
Posts: 4
Joined: Mon Feb 13, 2006 4:57 am

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

Post 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
# 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/
morbryn
Posts: 4
Joined: Mon Feb 13, 2006 4:57 am

Post 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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
Post Reply