Page 1 of 1

Second Installation of Serendipity

Posted: Thu Sep 15, 2005 1:01 am
by lauterunfug
I'd like to install a second Serendipity blog on the same domain.

The existing installation is on the main-domain www.lauterunfug.ch

to install the second on (without sharing content) on a subdomain, am I right to do the following steps?

1. upload the files to the subdomain-directory
2. create a NEW table in the database (with phpmyadmin)
3. browse the sudomain-directory to start installation
4. use ANOTER PREFIX for the table-rows in the database!

5. anything else???

mfg
tom

Re: Second Installation of Serendipity

Posted: Thu Sep 15, 2005 3:57 pm
by garvinhicking
Step "2" is not needed; the s9y installer will create the TABLES for you. Just pay attention that the DATABASe is already existing and you use a different Prefix for the second installation.

Best regards,
Garvin

Posted: Thu Sep 15, 2005 4:18 pm
by lauterunfug
thanx for that.

I just uploaded the files to the subdomain /home/usr/lauterunfug/subdom/linkdump/

when browsing to this subdomain the installation-shows on the bottom the following:

Rechte
/home/usr/lauterunfug/public_html/ Beschreibbar
/home/usr/lauterunfug/public_html/templates_c Beschreibbar
/home/usr/lauterunfug/public_html/uploads/ Beschreibbar
Execute Imagemagick binary Ja


why does it checks the main-domain and not the subdomain?
when I go to continue the installation for the subdomain the installation of the main-domain will crash!

Posted: Thu Sep 15, 2005 4:51 pm
by garvinhicking
That depends on how your host has setup subdomains. usually each Subdomain should have it's own Document Root. S9y uses the document root plus it's current directory to check files... did you accidentaly copy the serendipity_config_local.inc.php file to the directory as well?

Regards,
Garvin

Posted: Thu Sep 15, 2005 5:04 pm
by lauterunfug
no, there is only
serendipity_config.inc.php
but no
serendipity_config_local.inc.php

would I solve that problem with copying the serendipity_config_local.inc.php to the subdomain (with modified definitions of course)?

or do I have to locally change the root? is that possible without effect the main-domain? htaccess?

Posted: Thu Sep 15, 2005 6:01 pm
by garvinhicking
You can change the path settings later on in the configuration - that should do the trick; copying the local.inc.php file will help you nothing.

Make a backup of your DB/files of the main blog before, of course.

Regards,
Garvin

Posted: Thu Sep 15, 2005 6:23 pm
by lauterunfug
I could install serendipity on the subdomain.

Then I changed the settings in serendipity_config_local.inc.php

then I logged in to the admin-area and changed the settings there too.
Unfortunately that caused also a change in the settings of the serendiptiy in the main-domain!?!?

It doesn't matter in which installation I change the settings: there are always the same settings in both installations. Where do they got saved?

Posted: Thu Sep 15, 2005 8:43 pm
by garvinhicking
That sounds like you used the same dbprefix as in the other installation, or that the one installation is using the config of the other.

The settings are stored in the serendipity_config table.

Regards,
Garvin

Posted: Thu Sep 15, 2005 10:48 pm
by lauterunfug
The prefixes are not the same. So I guess they both use the config of the first installation. It always change the config of the first config.
The second config stays the same.

DBs are:

Database1: lauterunfug_fun
Prefix 1: serendipity_

Config 1:
serendipityPath: /home/usr/lauterunfug/public_html/
serendipityHTTPPath: /
baseURL http://www.lauterunfug.ch/

---------------------------------------------------------

Database2: lauterunfug_linkdump
Prefix 2: serendipity2_

Config 2:
serendipityPath: /home/usr/lauterunfug/subdom/linkdump/
serendipityHTTPPath: /
baseURL http://linkdump.lauterunfug.ch/


Do you have an idea why the second one also uses the config of the first installation?

Posted: Fri Sep 16, 2005 12:38 pm
by lauterunfug
further infos:

<?php echo $_SERVER['DOCUMENT_ROOT']; ?> in a subdomain gives the path to the main-domain.
This really seems to be the problem.
I could solve that with changing the variables in the s9y-files...


do I have to change the varuabke S9Y_INCLUDE_PATH ??

but where??

Posted: Fri Sep 16, 2005 1:29 pm
by lauterunfug
I think I could solve the problem:

In serendipity_config.inc.php of the installation in the subdomain I changed line 188

instead of $_SERVER['DOCUMENT_ROOT'] I wrote /home/usr/lauterunfug/subdom/linkdump/
because the Document_Root is wrong in the subdomain.

Code: Select all

if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
   //Old Version    
   //include_once($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
   //New Version
   include_once('/home/usr/lauterunfug/subdom/linkdump/serendipity_config_local.inc.php');

but thanx anyway to you, garvin!

Posted: Fri Sep 16, 2005 1:31 pm
by garvinhicking
Thanks for solving this. However the problems lies within your Apache Server setup, as the document-root needs to be different to your mainblog!

You will definitely face some same problems in some of the plugins that use DOCUMENT_ROOT.

Regards,
Garvin

Posted: Fri Sep 16, 2005 1:42 pm
by lauterunfug
hopefully this will not happen ;-)

I'm happy now - the second installation works so far.

later
tom