Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Does LAMPCMS support multiple subdomains like Stack Exchange?

1

801 views
Hi,

Does LAMPCMS support multiple questions answer sites with a single install? Like Stack Exchange does, can I build more than one site like science.mysite.com, photography.mysite.com, etc. with a single install? If it does, will the performance of the server degrade significantly?

Thanks!
 
asked February 7, 2013 at 9:29 AM

 us

1 Answer

2
Best answer
 
Yes, you can run multiple sites from single Lampcms library, it even comes with a lampcms.phar - php archive where entire library is packages in one file.

Every site will need own www directory with all the templates, css files, js files and own config file but the lampcms engine - can be shared between sites.

If you going to use sub-domains like you mentioned, then I'm pretty sure the you can also share database of users and user logged-in to any of your sub-domains will also be able to use any other sub-domain.

I have never done this, but in theory you can share user collection in MongoDB between multiple sub-domains in order to implement a single login.

If you run into any issues when setting this up, just ask for help here, I will help you.
flag
answered February 8, 2013 at 7:19 AM
Thanks Dmitri for the answer. I will try this and let you know how things go.
flag
Feb 8, 2013 09:00 AM

Your answer

Join with account you already have

FTTF

Preview

Alert