Correct path usage when moving to a new server

Having trouble installing serendipity?
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Correct path usage when moving to a new server

Post by treehstn »

I'm having a heck of a time getting a blog to work again after trying to migrate to a new hosting server. Here is what the page looks like:

http://cblog.cessnapilot.net/cblog/html/

On my hosting plan I've seen two different paths listed and am not sure which I should be using. They are:

home81b/sub001/sc44840-OTZJ
and
mysql1054.servage.net

I first set the serendiptyPath in the DB to the one that starts with home81b and it didn't work. Then I set it to the other one and it didn't change from the first path. I'm lost!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Correct path usage when moving to a new server

Post by garvinhicking »

Hi!

That path is incomplete, you must enter a full path like /home81b/sub001/... - however, that might not be your complete full path. Please ask the server provider for that full path.

Looking at your HTML output, I assume the proper path is:

/mounted-storage/home81b/sub001/sc44840-OTZJ/cessnapilot.net/cblog/html/

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/
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I think I might know what is wrong with this install but I'm not sure how to fix it. When I had it installed on the old server the address to the blog was http://cblog.cessnapilot.net. Somehow on the new server it is going to http://cblog.cessnapilot.net/cblog/. Would that cause all of the errors that are showing up?
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

Also, I found this notation in the FAQs. I'm not sure what to actually change in these files. I don't see where the DB user account or the paths are listed in either file.

Now edit the serendipity_config_local.inc.php file, you might need to insert the new DB user account data into that file. You also might need to edit your .htaccess file to set the new paths properly.
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

In the FAQ it also says:

On your new server, make sure that all the permissions are set like they were on the old provider. Especially make sure that the files serendipity_config_local.inc.php and .htaccess are read+writable by the server, and the directory templates_c/ and uploads/ is read+writable by the server.

I don't have access to the old server installation and don't remember what the permissions were set to.

To be read writable by the server... Is owner or group the server?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

IF you had your blog previously in "/" and now have it in "/cblog" that is DEFINITELY a problem! You will need to edit every article that has a link to images in it, because all the links are now wrong.

To fix the errors first, you need to change your serendipity_config DB table so that you will have these values:

serendipityPath:
/mounted-storage/home81b/sub001/sc44840-OTZJ/cessnapilot.net/cblog/html/

serendipityHTTPPath:
/cblog/html/

baseURL
http://cblog.cessnapilot.net/cblog/html/

However, it would be better if your new provider would route everything to http://cblog.cessnapilot.net/ instead of http://cblog.cessnapilot.net/cblog/html!

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/
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I still have the backup of the database. Would it be easier to just wipe out the new installation and reinstall with a correct path?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You could do that, but with a reinstallation you would loose all entries, configuration, plugins etc.?!

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/
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

But if we haven't had the blog running at all on this new server and I haven't been able to get it installed correctly I'm not really losing anything am I?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I'm still sure you can fix it by changing the paths to what I wrote earlier in this thread, have you tried it?

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/
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

Gavin,

I'll try changing the paths right now. But what do you mean by this:

However, it would be better if your new provider would route everything to http://cblog.cessnapilot.net/ instead of http://cblog.cessnapilot.net/cblog/html!

I'd prefer to do what it takes to have a clean install with nothing that might cause issues later. But I don't know enough about what these fixes will impact. Maybe nothing! Let me know.

Thank you so much for helping!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The question is: Why does your new URL look like http://cblog.cessnapilot.net/cblog/html instead of what formerly was
http://cblog.cessnapilot.net/ ? This seems to me as if it stems wrong a wrong migration or a wrong setup of your new host? The new URL there should also be http://cblog.cessnapilot.net/ -- so maybe you need to move the directory cblog/html/ to /?

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/
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I tried what you posted and it didn't work. It's about 2am here so I'm off to get some sleep. I'll tackle this some more in the morning.

Thanks!
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I tried wiping out the installation and database and reinstalled everything. It still doesn't work. I don't have the time or expertise to keep trying to get this to work. I have the database dump file and the serendipity files backed up. Is there anyone here that I can pay to get this installed correctly?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, you can send ma a PM with the FTP account and phpmyadmin access details and I'll try to do it.

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/
Post Reply