Moving Server, Any Advice?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Moving Server, Any Advice?

Post 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
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

Here's a link to the FAQ that will help. http://www.s9y.org/11.html#A21

Hope all goes well. :)
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Post by destraynor »

Cool thanks for that Azel, I'll let you know how it goes.
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Post 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
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

Cool, lookin' good. :D
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Post 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)
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

I wonder if it might have something to do with your .htaccess file, because your settings are all correct..
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Post 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
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

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

Post 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
# 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/
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Post by destraynor »

destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

Post 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]
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

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

Post 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
# 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/
destraynor
Regular
Posts: 15
Joined: Mon May 22, 2006 6:07 pm

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