Moving serendipity to different location on web server

Having trouble installing serendipity?
Post Reply
njdevang
Posts: 3
Joined: Wed Aug 24, 2005 1:47 am

Moving serendipity to different location on web server

Post by njdevang »

HI

I have installed serendipity on our apache server in our document root /home/httpd/html folder.

This points to url www.xyz.com/serendipity/ and works fine !!

Now I have this problem :

I need serendipity to go under another folder which is /home/httpd/html/abc.com/serendipity/

where /home/httpd/html/abc.com/ is pointing to abc.com and I should be able to access the blog using
www.abc.com/serendipity

How should I go about it ??

Do a fresh install in /home/httpd/html/abc.com/ directory?

what steps I should be careful of in doing this?

Is there any other way to use the existing stuff?

Thanks
devang
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Moving serendipity to different location on web server

Post by garvinhicking »

Do you want the second blog to be on its own with its own content, or do you want it to be a identical version than the one on www.xyz.com?

If it should be identical, just use symbolic links.

If it should be on its own, the most easiest way would be to install s9y a second time. If you want it to be "cool", you can use the shared installation feature.

For this, you first need to create a directory "s9y" that contains the installation, and set the parent directory to the include_path of s9y. Precisely, that means you should create a symbolic link /home/httpd/html/s9y which points to /home/httpd/html/serendipity. Then set the include_path setting either via php.ini or "php_value" directives to /home/httpd/html/.

Then copy the files of serendipity/deployment/ to your /home/httpd/html/abc.com/serendipity directory and link some more directories described here: http://www.s9y.org/index.php?node=41

Then you can install the second serendipity on its own, but it uses all the files of the central installation. if you later upgrade the central installation files, all shared blogs will also be updated.

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/
Guest

Post by Guest »

HI Garvin

I am planning for am identical installation.

Can you tell me how should I set up sym links for that?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Well, just setup the symlink with:

Code: Select all

ln -s -d /home/httpd/html/abc.com/serendipity /home/httpd/html/serendipity
Then everythink should work when calling abc.com/serendipity.

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/
Guest

Post by Guest »

After doing this whe I type

www.abc.com/serendipity/ it goes to www.xyz.com/serendipity

First time on URL bar it shows www.abc.com/serendipity/
but all other clicks then shows www.xyz.com/serendipity

Is it possible to show the new URL always on the address bar ?

Devang
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Enable "Autodetect HTTP Host" in your Serendipity Configuration. :)

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/
njdevang
Posts: 3
Joined: Wed Aug 24, 2005 1:47 am

Post by njdevang »

YOU Rock Garvin !!

I am able to run everything without a new installation :)

Thanks for all you help ..

Devang
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You're very welcome. Have fun with Serendipity and spread the word. :-)

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