Adding a New Site - NancyDru/Core7 GitHub Wiki

After you clone the repository, add a directory to the sites folder that is your new site’s name, for example, xyz.edc.org (I will continue referring to this name).

New Site Directory

Within your new directory, you will need a proper settings.php file and may need a files directory inside it.

If you need special modules (other than the few modules maintained with Core), you will need to create a modules folder. Within that folder, you should also have a_contrib_ and, possibly, a custom folder.

If you are using any modules that require Libraries support (such as WYSIWYG editors), then create a libraries folder for them.

If you are not using a core theme, or if you are using one of them as a base theme, then you will need a themes folder.

Your structure might end up something like this:

  • xyz.edc.org
    • settings.php
    • libraries
      • ckeditor
      • jquery.cycle
    • modules
      • contrib
        • admin_menu
        • advanced_help
        • date
        • views_slideshow
      • custom
        • xyz_custom
    • themes
      • xyz_zen
      • zen

Apache

If your Apache set up requires a Vhost, this works for me, on WampServer:
<VirtualHost *:80>
ServerName local.xyz.edc.org
DocumentRoot "C:/wamp/www/Core7"
</VirtualHost>

In this example, we use the “local.” prefix to distinguish the URL from the development and production environments.

Don’t forget to restart Apache after adding a new site. You may also need to restart your browser.

⚠️ **GitHub.com Fallback** ⚠️