How to Install Multiple Joomla! Sites on One BitNami Stack

Thanks to BitNami user mzhulaev, who originally posted this in our forums, we now have the tutorial below on how to run multiple Joomla! sites on one BitNami Stack. Although this article is focused on Joomla!, it should apply to other Stacks as well.

Here is the how-to:

1. Go to the file at “C:\Program Files\BitNami RubyStack\apache2\conf\httpd.conf”

2. Add the following line to the end of the file:

Include “C:/Program Files/BitNami RubyStack/apps/NEW_INSTANCE_NAME/conf/NEW_INSTANCE_NAME.conf”

3. If you want to see the new instance on the BitNami application load page (http://localhost), edit the following file in html-editor (otherwise, you can skip this step)

“C:\Program Files\BitNami RubyStack\apache2\htdocs\applications.html”

4. Copy the following block:

<!-- START BitNami Joomla 1.5.15-0 Module joomla --> 
********
<!-- END BitNami Joomla 1.5.15-0 Module joomla -->

and correct the following:

<h2>NEW_INSTANCE_NAME</h2>
<div align=“right” class=“module_access”><a href=“/NEW_INSTANCE_NAME”>Access</a></div>

5. Create the following folders

“C:\Program Files\BitNami RubyStack\apps\NEW_INSTANCE_NAME\conf”
“C:\Program Files\BitNami RubyStack\apps\NEW_INSTANCE_NAME\htdocs”

6.Copy the following file from the original Joomla instance to the NEW_INSTANCE folder and rename it:
Original: “C:\Program Files\BitNami RubyStack\apps\Joomla\conf\Joomla.conf”
To: “C:\Program Files\BitNami RubyStack\apps\NEW_INSTANCE_NAME\conf\NEW_INSTANCE_NAME.conf”

7. Edit the following lines in this file:

Alias /NEW_INSTANCE_NAME/ “C:/Program Files/BitNami RubyStack/apps/NEW_INSTANCE_NAME/htdocs/”
Alias /NEW_INSTANCE_NAME “C:/Program Files/BitNami RubyStack/apps/NEW_INSTANCE_NAME/htdocs”

<Directory “C:/Program Files/BitNami RubyStack/apps/NEW_INSTANCE_NAME/htdocs”>

8. Download the latest Joomla version (i.e. from here: www.joomla.org)

9. Copy and extract the archive in this folder
“C:\Program Files\BitNami RubyStack\apps\NEW_INSTANCE_NAME\htdocs”

10. Use phpMyAdmin to create a new DB_instance and user.

11. Install the new Joomla instance. This procedure is explained in detail on many sites. There is one posted at this link.

9. Restart the Apache Server

10. You should be able to access the new instance using this link: http://localhost/NEW_INSTANCE_NAME or from the BitNami application load page (if you performed step #3)


Nov 24, 2009 | Tags: CMS

Comments

The easy way

I found a much easier way to accomplish this and I'd like to share with you guys. Just install your joomla module as usual, then 1) open up your phpmyadmin page, click on bitnami_joomla database, click operations, copy the database. Give it a new name and make sure you copy structure AND data (or you wont have the user/pass to login to admin area). Still on phpmyadmin, click privileges and give use bn_joomla all permissions but GRANT on the new DB you just created. RELOAD privileges. 2) on the server, go to /opt/lampstack/apps/ (or wherever your bitnami's stack is installed), cp -pr joomla new_joomla_site 3) edit apache2/conf/httpd.conf, go to the end of the file, find the joomla.conf line, duplicate it and change the new line to reflect the folder name for your new joomla site 4) if you want, edit apache2/conf/extras/httpd-vhosts.conf and add a VirtualHost section for your site 5) in your lampstack folder, ctlscript.sh restart apache 6) go to your just created joomla site, access the admin area (login will be the same as the default installation), click Global Configuration, Server and edit the field Database. Fill the database name you created on step 1 and that's it. You now have a fresh new install of joomla. TIP: you can load the default install with all templates and modules/extensions you want and then easily distribute your default install. Hope you guys enjoy it.

Thanks!

Thanks, Ineto77! We really appreciate you taking the time to post. I'm sure this will help other BitNami users.

Didn't work for me... my simple way solution...

I tried both ways but never could reach the directory of the second joomla stack. Restarted apache on several ways and it simply didn't work. The solution i got is just install joomla in the ..\apache2\htdocs\somenameforyourjoomla folder. Not so secure I suppose, but the most of us will use the wampstack as a test environment i guess.

Digg-icon Digg This Story    Reddit-icon Reddit!    Facebook-icon Join Our BitNami Group

Twitter-16x16 Follow Us On Twitter    Add to delicious    Stumbleupon-icon Stumble It!