As I said earlier, I'm pretty new to slashcode (about a week now though), and am not very sure how to go about the virtual hosting for subdomains. Hacking around I was able to figure out that if I had multiple virtual users I could add more slashsites to the same host and run them all at the same time. So here's what I did:
Now my requirement is that these should be able to share data. But it seems, and actually rightfully so, that that is not possible or at the very least not adviseable. I tried getting the lottadot plugin but seems the cvs server is not working. Will try again or maybe install the slashcode once again with all modules selected, I think lottadot was an option there.
- prepared the server for slash by removing all preinstalled stuff that would've conflicted (Perl, Apache, MySQL)
- Reinstalled from source using documentation at slashcode.org
- downloaded the latest css enabled slash from CVS (version 2.2.6 I believe but I could be wrong as I got it from CVS and it doesn't really say which version it i even in the CHANGES file)
- setup a virtual user lets call it virtslash
- did a install-slashsite for my primary site using one virtual user
- got the site up and running
- next I added a new virtual user to DBIx::Password and created a MySQL database for this user
- setup the second subdomain using the virtual user added in step 6 by running a install-slashsite and providing new user when asked for it
- did the include jazz and tested both sites as running indepedently
Could you, or anyone else on the list, kindly detail the steps involved in setting up sections and then using them for the subdomains. So for example if I setup a section named rock (we're doing a music site) and I want to make that section the doc root for say
rock.domain.com then how should I actually go about it. Even if it's a readme which I have not been able to find the help would be greatly appreciated.
Thanks in Advance
On 9/12/06, Imtiaz A khan <firstname.lastname@example.org> wrote:
> I was finally able to setup slashcode and get it working as well as get
> subdomains going. I used multiple virtual users and multiple databases for
> the subdomains. Now my question is :
> Is it possible to have one central database for all of the subdomains? This
> way, when a user logs into the homepage or any of the subdomains, he will be
> logged into the entire site (this is what we want). It also may be easier
> to set up the subdomains to pull from this central database according to
> different parameters (for example: only display rock stories).
> I see on slashdot.org that they have multiple stories listed on the front
> page and these come from different subdomains. Is that a plugin at work and
> if yes what should I be looking at?
> I would very much like to have a single sign-on for all subdomains and
> content sharing between all, however if that is not something slashcode
> provides as a functionality is it atleast possible to get content from
> subdomains listed on the main page as is done on slashdot.org.
> Thanks in advance for your help
> Warm Regards
Bye for now
Imtiaz A. Khan
I just need enough to tide me over until I need more.
-- Bill Hoest
Lack of money is the root of all evil.
-- George Bernard Shaw
So you think that money is the root of all evil.
Have you ever asked what is the root of money?
-- Ayn Rand
All I want is a little more than I'll ever get.