1 texasag90 Dec 12, 2007 17:45
3 texasag90 Dec 13, 2007 13:27
Thanks. Will try tonight (I am out of town at the moment).
Not sure I understand how this is intended to work. I guess I must need a stub file called index.php at the absolute URL location?
4 texasag90 Dec 14, 2007 15:27
OK -- some progress -- but not all working.
I got the absolute URL working, but some links are broken.
Here is my setup. I have multiple domains hosted on a Lunarpages shared linux server (their $6.95 plan). All of my files live in /home/myuserid/public_html. My primary domain on the machine is http://www.preciousonpaper.com
My goal for this test is to get two blogs working in the same install -- one on http://www.preciousonpaper.com and one on http://test.masonworld.com
I have installed b2evo 2.2 in the public_htlm/blogs directory. That works. You can see it at http://www.preciousonpaper.com/blogs
I have created a new blog called testblog (blogID=4) with an absolute URL of http://test.masonworld.com. Note that the test.masonworld.com subdomain exists as a redirect to the directory public_html/test. I copied a_stub.php into that public_html/test directory as index.php. I changed the blog id to 4, and changed the config file path to the following crude relative path.
require_once dirname(__FILE__).'/../blogs/conf/_config.php';
Recall that the main install is in /home/myuserID/public_html/blogs and that the domain http://test.masonworld.com is redirected to /home/myuserID/public_html/test. So, when you hit /home/myuserID/public_html/test/index.php, the _config.php file is up one level over in ../blogs/cong. That URL gets resolved OK by dirname.
You can see that appears to work - sort of.
One problem is that the test post has broken links to the category and feedback. It looks to me like it is asking for links like this: http://test.masonworld.com/testcat/ -- I am not sure how that works. I guess that is an htaccess trick?
Another problem is logins and cookies. I get this alot from the http://test.masonworld.com blog:
WARNING: you are trying to log in to http://test.masonworld.com/?blog=4 but your cookie domain is .preciousonpaper.com. You will not be able to successfully log in to the requested domain until you fix your cookie domain in your b2evolution configuration.
Any comments on either of these?
Thanks!
Mark
5 texasag90 Dec 14, 2007 15:54
OK -- I am seeing that that category post stuff is a .htacess thing.
RTFM
http://manual.b2evolution.net/Appearance_of_my_permalinks
Trying to get that working.
So, looks like this is just a login cookie question now?
Thanks,
mark
6 yabba Dec 15, 2007 18:48
See if this post ( [url=http://waffleson.co.uk/2007/10/multi-domains-on-a-single-evo-install]multi-domains-on-a-single-evo-install[/url] ) is of any use to you ;)
¥
7 texasag90 Dec 15, 2007 22:40
8 texasag90 Dec 16, 2007 04:29
I think what I did broke trackbacks. Ugh.
This is harder than it should be (I am dummer than I should be). Might be neat to move this multiple domain stuff to the backoffice by setting a baseurl for each blog in the admin interface and working out the details some how.
Not giving up yet, though....
9 texasag90 Dec 16, 2007 07:58
OK, now I am ready to give up.
I am able to get the $baseurl set right, and the #cookie_domain set correctly as well. Still does not work well -- I keep getting logged out when I go from domain to domain (like the cookies get lost or overwritten).
To bed!
Mark
10 l_theman Dec 16, 2007 13:39
Hi folks, I am interested in much the same thing as texasag90 and I first thought, in my country boy way, that it would be better to download a version of b2e for each new domain name so that each blog is a seperate entity even though they are all on the one host. Apart from using up more storage space there wouldn't be a down side, would there?
11 yabba Dec 16, 2007 13:58
texasag90 wrote:
I am able to get the $baseurl set right, and the #cookie_domain set correctly as well. Still does not work well -- I keep getting logged out when I go from domain to domain (like the cookies get lost or overwritten).
Here's how I have it setup
On the server my blogs folder is
/home/innervisions/html/
Both of my domains point to the same folder by adding my second domain ( waffleson ) as an alias to my main domain ( innervisions ). This gives me one set of files to maintain for both domains.
Then, in conf/_basic.config.php I set my $baseurl to match the current requests uri, a tad further down the file I set the cookie path to "/"
$baseurl = ( strpos( $_SERVER[ 'HTTP_HOST' ], 'innervisions.org.uk' ) ? 'http://innervisions.org.uk/' : 'http://waffleson.co.uk/' );
$cookie_path = '/';
Then, in admin, for each of my blogs I've entered the urls in the "absolute url" box, which also has the effect of getting rid of index.php in the urls, but means I have to piss about with .htaccess to make it work ;)
The end result is I have 1 set of files, a single database, and one login ( although I have to login to both sites first ).
l.theman wrote:
Apart from using up more storage space there wouldn't be a down side, would there?
Only the fact that if you want to make any changes ( to a skin for example ) then you need to change the files for every install
¥
12 texasag90 Dec 17, 2007 12:47
The cookie path hint helped.
OK -- looks like the following did it
1. symbloic link from http:/extradomain/blogs to the maindomain/blogs dir
2. edit _basic.config_php to get the baseurl right.
3. edit _advanced.php to set the cookie path to slash.
4. edit .htaccess in each domains' root dir to do the normal mod rewrite stuff.
5. create a stub file index.php in each domain
I will post some details later after I do some testing.
Thanks for all the help.
13 texasag90 Dec 18, 2007 04:29
OK, this is sort of working here: http://test.masonworld.com
Note the template weirdness -- Blog title is offsett to the left.
But not working at all here: http://www.cochlearworld.com
Looks different if you call it this way: http://www.preciousonpaper.com/blogs/index.php?blog=8
Base install is here (also working) http://www.preciousonpaper.com/blogs/index.php/a/
Any ideas?
Thanks,
Mark
14 texasag90 Dec 18, 2007 05:44
Working better now -- not sure why.
Mark
15 rocketdude Dec 24, 2007 17:11
texasag90,
I'm planning on consolidating multiple blogs / multiple domains onto one instance of v2.X, so will you please post all of the changes your made to get this to work?
Thanks very much for being the trailblazer,
Rocketdude
16 texasag90 Dec 26, 2007 07:30
Yes -- I've been putting this off. Will do.
Mark
17 texasag90 Dec 26, 2007 08:26
18 texasag90 Dec 27, 2007 19:12
Any feedback on this?
19 samredman Dec 29, 2007 07:28
That looks good texas aggie. I am not understanding the symbolic link and how to set that up... but I will google that bit and then try to set one of these up with multiple domains. It's something I have been wanting to do.
20 texasag90 Dec 29, 2007 17:10
A sym link is just a pointer to another location. So ln -s bar foo creates a pointer called foo that actually just points to bar. In our case, I am just tricking apache into thinking that the blogs subdirectory is under the default docs directory. I don't think this is required, but it is clean from an maintainence standpoint.
21 samredman Dec 29, 2007 17:32
I will play with this some, I learned enough about the sym link from googling... to be able to set that up.. I must say also that the ¥åßßå site is very useful... ,
http://waffleson.co.uk/2007/10/multi-domains-on-a-single-evo-install
I plan to spend some time on this... but, we are having a bit of cool weather here today (Dallas), and on the off-chance that this is our winter, I am going to spend some time outside enjoying the chill.
22 texasag90 Dec 29, 2007 19:00
I'm in Dallas too (Allen, actually). Definately recommend you get outside today.
I don't exactly remember one of my experiments with b2evo, so please try this:
Steps:
1) Blog Settings
2) URLs
3) Choose "Absolute URL:" and type your new domain (example: http://www.goodbullblog.com)
4) Go to your host's cpanel
5) Somewhere there, click "Add New Domain"
6) Add your goodbullblog.com domain
Reply back if it doesn't work.. I'm trying to separate different menthods on my mind ^_^