# Installation

To configure the multi-URL mode, you will need

* access to your web server's configuration
* access to the definition of your domain names
* access to the Chamilo configuration file

The installation process is as follows

* update *app/conf/configuration.php* by removing the comments marker before the line : *$\_configuration\['multiple\_access\_urls'] = true;* (and make sure it is set to true)
* add ServerAlias directives inside your Apache's VirtualHost (see below)
* define domain or sub-domain names (DNS) so they point to your server
* \[deprecated] add line “1,1” in your *access\_url\_rel\_user* table (this line is not necessary anymore, starting from Chamilo LMS 1.9).
* go to the Chamilo admin page and follow the link *Multiple URL portals*
* redefine your main URL (replace *localhost*) and add the desired sub-portals, then add and enable a local administrator in each of them

![](https://748165138-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH9CCYPqjHw1VKNcuiq%2F-LH9CGn0ncN_3G09lrQH%2F-LH9DDPHEnv22n5_H8Ad%2Fgraficos97.png?generation=1531327458472824\&alt=media)

*Illustration: Administration - Multi-URLs*

For two different Multi-URLs and one administrative one, based on the domain *campusabc.com*, the VirtualHost would look something like this:

```
ServerAdmin webmaster@campusabc.com
DocumentRoot /var/www/campusabc.com /
ServerName admin.campusabc.com
ServerAlias pepsi.campusabc.com
ServerAlias cocacola.campusabc.com
... other host settings here ...
```

Don't forget to always consider that your first portal will be a generic, administration, portal. You should preferably not use it for direct access by students. Declare something like admin.\[domain-name] as the first host, then declare the URLs you will really use.
