Second Installation of Serendipity
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
Second Installation of Serendipity
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
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
visit my blog: http://www.lauterunfug.ch
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Second Installation of Serendipity
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
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/
# 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/
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
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!
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!
visit my blog: http://www.lauterunfug.ch
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
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?
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?
visit my blog: http://www.lauterunfug.ch
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
Make a backup of your DB/files of the main blog before, of course.
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/
# 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/
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
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?
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?
visit my blog: http://www.lauterunfug.ch
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
The settings are stored in the serendipity_config table.
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/
# 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/
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
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?
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?
visit my blog: http://www.lauterunfug.ch
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
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??
<?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??
visit my blog: http://www.lauterunfug.ch
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
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.
but thanx anyway to you, garvin!
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!
visit my blog: http://www.lauterunfug.ch
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
You will definitely face some same problems in some of the plugins that use DOCUMENT_ROOT.
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/
# 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/
-
lauterunfug
- Regular
- Posts: 54
- Joined: Wed Mar 16, 2005 9:26 am
hopefully this will not happen 
I'm happy now - the second installation works so far.
later
tom
I'm happy now - the second installation works so far.
later
tom
visit my blog: http://www.lauterunfug.ch