Page 1 of 1

Moving serendipity to different location on web server

Posted: Thu Sep 29, 2005 12:51 am
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

Re: Moving serendipity to different location on web server

Posted: Thu Sep 29, 2005 2:35 pm
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

Posted: Thu Sep 29, 2005 6:45 pm
by Guest
HI Garvin

I am planning for am identical installation.

Can you tell me how should I set up sym links for that?

Posted: Thu Sep 29, 2005 6:47 pm
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

Posted: Thu Sep 29, 2005 8:56 pm
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

Posted: Thu Sep 29, 2005 9:13 pm
by garvinhicking
Enable "Autodetect HTTP Host" in your Serendipity Configuration. :)

Regards,
Garvin

Posted: Thu Sep 29, 2005 9:27 pm
by njdevang
YOU Rock Garvin !!

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

Thanks for all you help ..

Devang

Posted: Thu Sep 29, 2005 9:31 pm
by garvinhicking
You're very welcome. Have fun with Serendipity and spread the word. :-)

Best regards,
Garvin