Page 1 of 2

Moving Server, Any Advice?

Posted: Mon Nov 20, 2006 1:35 am
by destraynor
Hi all,
I've been running s9y for over a year now, and I've finally gone and gotten my own domain. So I will be moving my serendipity install from
http://www.minds.nuim.ie/~dez/blog to http://www.destraynor.com

Whats the best way to move? Just zip up the whole directory and edit the config, or should I install a new s9y, and export the database?

Has anyone done this before, and if so what went right/wrong?


Many thanks


Des Traynor

Posted: Mon Nov 20, 2006 1:40 am
by azel
Here's a link to the FAQ that will help. http://www.s9y.org/11.html#A21

Hope all goes well. :)

Posted: Mon Nov 20, 2006 1:52 am
by destraynor
Cool thanks for that Azel, I'll let you know how it goes.

Posted: Thu Nov 23, 2006 3:31 pm
by destraynor
All done, now active at
http://www.destraynor.com/serendipity/


Haven't publicised it much yet cause I'm still checking things.

The guide was excellent. The only difficulty I had was that I couldn't copy over my serendipity_config_local.inc.php file, because I didn't own it. The sys-admin made a copy for me though. Otherwise, all is good in da hood.



Cheers,
Des

Posted: Thu Nov 23, 2006 9:52 pm
by azel
Cool, lookin' good. :D

Posted: Sat Nov 25, 2006 4:59 am
by destraynor
Okay everything worked grand except the comment form.
For some reason, comments are working, but after you comment it's redirecting the user back to here:

Code: Select all

http://destraynor.com/destraynor.com/serendipity/index.php?url=archives/26-How-to-get-music-off-your-iPod.html&serendipity[csuccess]=moderate#feedback
Instead of here

Code: Select all

http://destraynor.com/serendipity/index.php?url=archives/26-How-to-get-music-off-your-iPod.html&serendipity[csuccess]=moderate#feedback
So basically it's stick an extra destraynor.com in there.

My config is ...

Code: Select all

serendipityPath  	/home/dez/public_html/destraynor.com/serendipity/

Code: Select all

serendipityHTTPPath  	/serendipity/

Code: Select all

baseURL  	http://www.destraynor.com/serendipity/
So I am guessing one of those 3 is wrong. Any ideas?

(Everything else seems to be working, by the way)

Posted: Sat Nov 25, 2006 6:09 am
by azel
I wonder if it might have something to do with your .htaccess file, because your settings are all correct..

Posted: Sat Nov 25, 2006 1:23 pm
by destraynor

Code: Select all

#RewriteEngine on
# BEGIN s9y
DirectoryIndex /serendipity/index.php
php_value session.use_trans_sid 0
php_value register_globals off
<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y

Posted: Sat Nov 25, 2006 1:39 pm
by destraynor
I think it's this line in index.php thats giving me 2 domain names in the output...
$sc_url = $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&' : '?') . 'serendipity[csuccess]=' . (isset($serendipity['csuccess']) ? $serendipity['csuccess'] : 'true');

Is it possible that the name of the directory (destraynor.com) is confusing it?

Posted: Sun Nov 26, 2006 1:36 am
by garvinhicking
Hi!

Hm, the REQUEST_URI comes straight frmo the webserver. how does that variable look like before modification, have you tried to echo it somehow?

Regards,
Garvin

Posted: Sun Nov 26, 2006 8:43 pm
by destraynor

Posted: Sun Nov 26, 2006 9:06 pm
by destraynor
I'm not sure I follow Garving, where shoud I be echoing this variable?

[also, if anyone can think of a quick hack to get things back to normal, please let me know]

Posted: Sun Nov 26, 2006 9:17 pm
by destraynor
Interesting, I upgraded (1.1 beta 5) and things have started working again :)

I still have 4 billion comments, but I can live with that for the moment.

Thanks for your help guys.

Posted: Mon Nov 27, 2006 10:13 am
by garvinhicking
Hi!

The comment count was a bug of earlier s9y versions that could sometime happen when deleting unmoderated postings. You will need to fix that entry count using phpMyAdmin and editing the 'comments' column for that entry in the table serendipity_entries.

HTH,
Garvin

Posted: Mon Nov 27, 2006 11:08 pm
by destraynor
Once again thanks.

Another, slightly weird question.

Why is http://destraynor.com/serendipity/archives/ now pointing to an empty folder. I realise that archives is some sort of dummy directory, but I can't see how it is supposed to display anything.

(obviously this is something else that worked on the old server but not on teh new one)