Page 1 of 2

Correct path usage when moving to a new server

Posted: Mon Jan 21, 2008 10:50 pm
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!!

Re: Correct path usage when moving to a new server

Posted: Tue Jan 22, 2008 11:51 am
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

Posted: Mon Feb 04, 2008 7:24 pm
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?

Posted: Mon Feb 04, 2008 7:35 pm
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.

Posted: Mon Feb 04, 2008 7:54 pm
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?

Posted: Tue Feb 05, 2008 11:16 am
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

Posted: Tue Feb 05, 2008 8:01 pm
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?

Posted: Tue Feb 05, 2008 8:50 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Posted: Wed Feb 06, 2008 12:04 am
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?

Posted: Wed Feb 06, 2008 10:37 am
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

Posted: Wed Feb 06, 2008 10:42 am
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!

Posted: Wed Feb 06, 2008 10:53 am
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

Posted: Wed Feb 06, 2008 11:04 am
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!

Posted: Sun Feb 10, 2008 6:35 am
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?

Posted: Sun Feb 10, 2008 11:52 am
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