Two Domains one host account - multiple installations -Fixed

Having trouble installing serendipity?
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Two Domains one host account - multiple installations -Fixed

Post by zikronix »

Ok

I have two domains. Both hosted on a single hosting account.

One domain: http://www.wackynoodle.com/ points to the root of the hosting

the other domain http://www.angelicaandtim.us basically points to
a folder called angelicaandtim

therefore. you could get to angelicaandtim.us by going to www.wackynoodle.com/angelicaandtim/

makes sense?

Well I was so impressed with serendipity that i used it for wackynoodle.com

and now i want to use it for angelicaandtim.us but despite having multiple databases and the installs in different areas.

angelicaandtim.us will mirror everything that is on wackynoodle.com


(Currently i have reverted angelicaandtim.us back to its original config.)

Any who...can any one give me some advice on this. Im pulling my hair out.
Last edited by zikronix on Wed Jan 30, 2008 7:37 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Two Domains one hosting account - multiple installations

Post by garvinhicking »

Hi!

You can only make s9y operate properly on different domains, if the pathname stays the same. You cannot use "/" on one domain, and "/blog" on the other for example, because it screws with relative links.

You would need to install serendipity two times (into different databases, or using different table prefixes) if you want to have it run on two different paths

(I hope this was your question? :-) )

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/
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

what it sounds like your saying is that i could run serendipity...in two different folders for example

"/" and "/blog"

as long as the following is true

2 different data bases with two different table prefixis.

which is what i did and everytime i went to domain.com and domain.com/blog i got the same website. and when i updated one it of course updated the other.

Is that right or wrong...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Partially. You can only use "/" and "/blog" if you install Serendipity two times. You must have all serendipity files both in / and in /blog, and use table prefixes like serendipity1_ and serendipity2_.

The only way to circumvent that is to use the serendipity shared installation, but that should only be used by advanced users who have knowledge about DocumentRoot's etc. of Apache virtualHosts.

If you do install s9y with URL rewriting enabled in both / AND /blog, the URL rewritings might interfer. In that case you might need to disable URL rewriting in both blog configurations...

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/
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

hmm.

So I have my two databases. Both on different servers

one with the prefix s_
the other with the prefix serendipity_

I had the serendipity files located at "/" and at "/blog"

so two different installs.

with two different databases.

My host is godaddy shared hosting.

On install was with the one click the other install was manual. (shouldnt matter) and URL Rewriting is off

yet "/" and "/blog" still mirror each other. Ive looked at everything that makes sense. including htaccess

Ive also gone so far to modify the config php files in both / and /blog to reflect the correct info of each respected database.

iv even called the admin script from each respected location and made sure the absolute path was correct for each respective install yet when i update one the other breaks?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can you tell us the actual URL to those two blogs?

It really looks as if both are using the same database table(s). How does the serendipity_config_local.inc.php file of both directories look like (strip the password!)?

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/
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

Im installing serendipity by hand on the second blog now but the info you requested is below

the firstblog

http://www.wackynoodle.com


the second blog

http://www.angelicaandtim.us

which points to http://www.wackynoodle.com/angelicaandtim/ (because they are using the same host, but we established that information.)

the config files are below.

For wackynoodle.com (i removed server name and pass)

<?php
/*
Serendipity configuration file
Written on Mon, 28 Jan 2008 18:08:22 -0700
*/

$serendipity['versionInstalled'] = '1.2.1';
$serendipity['dbName'] = 'wac0732008022331';
$serendipity['dbPrefix'] = 's_';
$serendipity['dbHost'] = 'uniqueserver1';
$serendipity['dbUser'] = 'wac0732008022331';
$serendipity['dbPass'] = '******';
$serendipity['dbType'] = 'mysql';
$serendipity['dbPersistent'] = false;
$serendipity['dbCharset'] = 'utf8';

// End of Serendipity configuration file
// You can place your own special variables after here:

?>



For angelicaandtim.us

this is where i think things go south

when i call up the install script it gives me the absolute path (permissions wise everything is good)

but this is the path it gives me

/removed/removed/removed/removed/removed/removed/html/

when in reality it should be

/removed/removed/removed/removed/removed/removed/html/angelicaantim/


rather i call the script from http://www.angelicaandtim.us/
or wackynoodle.com/angelicaandtim/

i get the same info above.

even if i modify the config afterwards or before it cause all sorts of havok


but this is what that config looks like

<?php
/*
Serendipity configuration file
Written on Mon, 28 Jan 2008 15:15:59 -0700
*/

$serendipity['versionInstalled'] = '1.2';
$serendipity['dbName'] = 'ang071239897652';
$serendipity['dbPrefix'] = 'serendipity_';
$serendipity['dbHost'] = 'uniqueserver2';
$serendipity['dbUser'] = 'ang071239897652';
$serendipity['dbPass'] = '******';
$serendipity['dbType'] = 'mysql';
$serendipity['dbPersistent'] = false;
$serendipity['dbCharset'] = 'utf8';

// End of Serendipity configuration file
// You can place your own special variables after here:

?>
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

WAIT.........................



ALL of the sudden when i did the domain.com/folder/

i got the correct full path

let me try this.
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

ok I got two installs...thats sweet...

now i just need to fiigure out why

when i go to angelicaandtim.us

and wackynoodle.com/angelicaandtim/

why i get two different pages. When I go to angelicaandtim.us I should get whats listed at wackynoodle.com/angelicaandtim/

and not whats listed at wackynoodle.com/

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

Post by garvinhicking »

Hi!

How does your server do the redirect? Maybe the documentroots in the VirtualHost are not properlly mapped?

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/
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

it just points to the folder when im doing it in the domain management it says where do you want this domain to go... and i point it there. I would assume its a virtual host instead of a traditional dns forward.

but im not sure becuase anything else i throw in there works fine.

Btw I love serendipity...wonderful product. godaddy on the the other hand....not so much.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, maybe we need to involve Godaddy support here and ask them how, technically, the redirect is performed. It seems that s9y feels its redirected to your root directory instead of the subdirectory...

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/
zikronix
Regular
Posts: 22
Joined: Tue Jan 29, 2008 2:31 am

Post by zikronix »

perhaps...but the told me to deal with you first. while i think i got my primary problem solved what should i tell them to do

you do realize this will be like pulling teeth.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

I should have said something sooner, but I presumed you had it all worked out.... earlier today, probably after the post that begins "...So I have my two databases. Both on different servers ..." everything looked fine to me. In otherwords, hitting either http://www.angelicaandtim.us or www.wackynoodle.com/angelicaandtim/ produced the same results (your recently married page) and http://www.wackynoodle.com/ hit the blue/black page..... and it appears at some point it was working for you as well, no?
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Just ask them:

"When I use your domain control tool to setup domain XY to point to path XZ, the serendipity tool detects this as Path ZX. The serendipity people want me to ask you, how the forward is technically solved: Using its own virtualhost, using sime kind of AliasName, mod_rewrite rules or something different alltogether?"

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