Make Joomla! multi sites enabled.

Replace $JOOMLA_HOME/configuration.php with the file below and ‘off you go’, the Joomla! codebase can now serve multiple websites. …

readme

On my Joomla! development site (my PC) I have created a configuration.php to make my Joomla! codebase multi sites enabled, that is several website aliases (configured in my httpd.conf) point to the same Joomla! directory. (Needless to say, use it at your own risk.) …

Of course there are some limitations (implications): …

All configured websites share the same $JOOMLA_HOME/administrator/components, $JOOMLA_HOME/components, $JOOMLA_HOME/mambots and $JOOMLA_HOME/modules files thus de-installing a component, module or mambot from one website makes the component unavailable for all websites. The Joomla! installer removes the file from the operating system. But since the ‘de-install’ wasn’t run against the database on another website alias the component (module or mambot) may seemavailable in the administrator panel. …

Solution: I keep a keen eye on the components, modules and mambots I install and save (create) SQL files for manual (MySQL) installation and de-installation. …

Since the $JOOMLA_HOME/configuration.php file is overwritten the use of the configuration panel in the Joomla! administrator sections can only be used for ‘read only’ access. …

The images from $JOOMLA_HOME/images/stories are available to all websites. (I always create $JOOMLA_HOME/images/stories/<site-alias>) (If someone nows of a apache Rewrite trick to solve this please let met know!) …

Step 1. configure apache httpd.conf file

My httpd.conf file looks like below, the ServerAlias *.joomla.remidian.localhost makes sure I can add as much aliasses as I want. …

httpd.conf
<VirtualHost 127.0.0.1>
 ServerName	joomla.remidian.localhost
 ServerAlias	*.joomla.remidian.localhost
 DocumentRoot	"C:/app/apache/Apache1/Apache/htdocs/Roomla_1.0.12"
</VirtualHost>
Step 2. configure hosts file

Next you need to adjust your ‘hosts’ file. You need to tell that …

Read more →