multipkle elgg installs

If I have Elgg installed on community.mysite.com could I install another Elgg on say... private.mysite.com with it's own mySQL database and own data directory?

  • Yes you can!  Are you using a shared hosting provider with CPANEL or a dedicated server?

  • @Lee - Yes it's shared, why does it make a difference?

  • It matters because on a shared server with a popular website you most likley use up all the system's resources getting you throttled by the webhost, now add another elgg site on the same server and they will most likely turn you off

  • Mazie, Steve brings up a good point.  However, if you have a small user base then it might not be that big of a problem.  I'm not sure how to monitor the resources on a shared hosting account to tell if you're sucking up too many resources. 

    The process:

    in CPANEL create a new sub-domain for private.mysite.com.  The sub-domain will be associated with a subfolder in the \public_html\ directory.  Name the subdirectory whatever you'd like.  From there you just copy the Elgg files into the new subdirectory as you would for any other install, create another mySQL database, run install.php and off you go.  You'll now have a site that you can access from http://private.mysite.com.

    This is grossly oversimplified but I'm assuming that you have the process for Elgg installation down.

  • What stops both Elgg installs using the same mySql database and data directory?

  • when you run install.php you configure the new database and data directory.

  • Sorry, maybe I wasn't clear on this point.  You're going to run install by going to your new URL:

    http://private.mysite.com/install.php

    This will allow you to configure the Elgg installation in the new subdirectory and won't effect your original Elgg installation.  In this install script you will specify your new database and new data directory.

     

  • I appreciate that it will allow me to configure it for the new db & data directory but what prevents me from configuring it using the old db & data directory?

    @steve @Lee - Thanks for your time

  • not too sure on that one.  I'll have to punt.

    np!

  • If I am creating a mobile theme like, http://mobile.mysite.com , are you suggesting to use seperate DB and data directory?  I just need to create a new theme for different mobile devices. Can you please tell me the steps?