Page 1 of 2

Two Domains one host account - multiple installations -Fixed

Posted: Tue Jan 29, 2008 2:44 am
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.

Re: Two Domains one hosting account - multiple installations

Posted: Tue Jan 29, 2008 10:25 am
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

Posted: Tue Jan 29, 2008 3:19 pm
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...

Posted: Tue Jan 29, 2008 4:32 pm
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

Posted: Tue Jan 29, 2008 5:25 pm
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?

Posted: Tue Jan 29, 2008 8:36 pm
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

Posted: Tue Jan 29, 2008 9:11 pm
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:

?>

Posted: Tue Jan 29, 2008 9:16 pm
by zikronix
WAIT.........................



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

i got the correct full path

let me try this.

Posted: Tue Jan 29, 2008 9:20 pm
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

Posted: Tue Jan 29, 2008 9:21 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Posted: Tue Jan 29, 2008 9:27 pm
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.

Posted: Tue Jan 29, 2008 9:36 pm
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

Posted: Tue Jan 29, 2008 9:39 pm
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.

Posted: Tue Jan 29, 2008 10:04 pm
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?

Posted: Tue Jan 29, 2008 10:05 pm
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