No it wasnt working at that time. It looked like it was because i was still using blogspot at that time to do the backend stuffDon Chambers wrote: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?
Two Domains one host account - multiple installations -Fixed
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
It sure seems that your domain is simply not pointing to the right folder... are you SURE you have this set up correctly in the godaddy host? Because when I hit http://www.wackynoodle.com/angelicaandtim/, I see the other domain. I'm also wondering about your install paths... when I hit your admin page, "return to weblog" takes me out of the subfolder, and back to the other root domain.
I use godaddy too, but not in this manner. If you want me to take a closer look (no guarantees of results though!!! LOL), PM me with details and I will be happy to.
I use godaddy too, but not in this manner. If you want me to take a closer look (no guarantees of results though!!! LOL), PM me with details and I will be happy to.
=Don=
I know for a fact its set up prperly. I've been fiddling with it this afternoon so it possible that something isn't correct right now. I have a buddy of mine who works in their dns-dev dept looking at everything on that side of things now. Other database products work. Coppermine, joomla etc so I have faith.
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
and the verdict is in
Per my buddy at godaddy
It was a conflict between the way we do Shared Hosting Alias Domains in subdirectories and the Serendipity config, when Serendipity is installed in both locations. Serendipity explicitly looks for its config file in a path that it builds based on the website's document root + PHP_SELF directory before checking anywhere else, which in the case of these Alias Domains, leads back to the root directory of the main website instead of the current, or alias subdirectory.
So, basically, even though it was loading the index.php from /angelicaandtim/, it was reading the config file from the root of wackynoodle.com, which caused it to load the config data from the wrong database.
To fix it, I had to comment out a couple lines of code, and change an "elseif" to an "if" in the file /angelicaandtim/serendipity_config.inc.php around line 222.
Let me know if it's still a little wonky. Should work now, though. If you ever reinstall or upgrade Serendipity, it will most likely break again, but should be fixable.
*****************************************************
Well it does work...could it break other stuff maybe I guess we will find out.
It was a conflict between the way we do Shared Hosting Alias Domains in subdirectories and the Serendipity config, when Serendipity is installed in both locations. Serendipity explicitly looks for its config file in a path that it builds based on the website's document root + PHP_SELF directory before checking anywhere else, which in the case of these Alias Domains, leads back to the root directory of the main website instead of the current, or alias subdirectory.
So, basically, even though it was loading the index.php from /angelicaandtim/, it was reading the config file from the root of wackynoodle.com, which caused it to load the config data from the wrong database.
To fix it, I had to comment out a couple lines of code, and change an "elseif" to an "if" in the file /angelicaandtim/serendipity_config.inc.php around line 222.
Let me know if it's still a little wonky. Should work now, though. If you ever reinstall or upgrade Serendipity, it will most likely break again, but should be fixable.
*****************************************************
Well it does work...could it break other stuff maybe I guess we will find out.
No No. I never felt you were at all. I hope I didnt come across this way. Hell if this was a postnuke forum after my first post I would have recieved a reply of...and i do believe this would be a direct quote "RTFM NEWB" rather it was in the manual or not.Don Chambers wrote:If you need help, just ask... I'm not trying to intrude on Garvin's assistance - he is the guy I go to for help myself!!!! REGULARLY!!!! hehehehe
Keep us posted on your progress!!
At least your helpful. and btw...Sparticus is Awesome.
Last edited by zikronix on Wed Jan 30, 2008 7:40 am, edited 1 time in total.
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
everything i have tired so far has worked. there is a few things i need to deal with but i know that information is here on the forums and other sites and in the docs. So cool
Garvin, don. If you want to see what he changed let me know and i will forward it to you. It could be helpful for people on godaddy.
Not that you dont know what to change considering Garvin wrote it. LOL
The stupid part is i didnt even think about calling my friend until later this evening...he was like yea...lets take a look..we do things...different.
Garvin, don. If you want to see what he changed let me know and i will forward it to you. It could be helpful for people on godaddy.
Not that you dont know what to change considering Garvin wrote it. LOL
The stupid part is i didnt even think about calling my friend until later this evening...he was like yea...lets take a look..we do things...different.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Good catch, give my regards to your buddy.
I remember we do something like that, it's required for Shared Installations to detect an installation directory. So I'm afraid we might not be able to detect both cases. IMHO the more usual setting for people is to install s9y on a shared installation instead of installing s9y twice on two paths with domain redirects...but I'd really like to see that fix exactly, then I could put a note into the PHP code so that people know what to deactivate.
Best regards,
Garvin
Good catch, give my regards to your buddy.
I remember we do something like that, it's required for Shared Installations to detect an installation directory. So I'm afraid we might not be able to detect both cases. IMHO the more usual setting for people is to install s9y on a shared installation instead of installing s9y twice on two paths with domain redirects...but I'd really like to see that fix exactly, then I could put a note into the PHP code so that people know what to deactivate.
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/
garvinhicking wrote:Hi!
Good catch, give my regards to your buddy.
I remember we do something like that, it's required for Shared Installations to detect an installation directory. So I'm afraid we might not be able to detect both cases. IMHO the more usual setting for people is to install s9y on a shared installation instead of installing s9y twice on two paths with domain redirects...but I'd really like to see that fix exactly, then I could put a note into the PHP code so that people know what to deactivate.
Best regards,
Garvin
Garvin,
I think this is the full edit this started at line 222, I hope this helps. See me on the other hand i would see it more likely that a user wouldnt use a shared install becuase alot of people might not have access to the virtual hosts.
My buddys name is George.
*************************************************************
/*
the next section was commented out to make this work in an Alias Domain's subdirectory.. if left in, Serendipity
will read the config file from the main domain's root instead of the current, alias domain subdirectory, causing the
wrong database to be read.
--GRK 01/29/2008
*/
/*-- start chop
if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
$local_config = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php';
} elseif
end chop --*/
if (defined('S9Y_DATA_PATH')) { //added "if" GRK
********************************************************