2nd installation of Horizon QCMS on the same site
Running Multiple Horizon QCMS Installations Applies to all versions of Horizon QCMS.
As your website grows, a single Horizon QCMS installation may not always be the most practical solution.
Large websites often benefit from separating content into dedicated sections, such as news articles, documentation, blogs, or fan content. The good news is that Horizon QCMS makes it easy to run multiple installations on the same website while sharing a single database. For example, you could maintain your main website in the root directory and create a separate Horizon QCMS installation for an articles section, similar to the structure that was used on HeatherNova.us.
Step 1: Create a New Folder Create a new folder within your website, for example:
Plain Text /articles/
Step 2: Copy Your Horizon QCMS Files
Copy all Horizon QCMS files from your main installation into the new folder.
Next, copy your existing config.php file and keep the same database settings:
|
<?PHP |
Step 3: Change the Site Identifier
The most important step is assigning a unique value to $site_id.
Your primary installation might use:
PHP
$site_id = "new_horizon";
For the second installation, simply choose a different identifier:
| $user = "root"; $password = ""; $host = "localhost"; $dbname = "my_database"; $site_id = "articles"; ?> |
That's all you need to separate the content of both installations.
Why Use a Different Site ID?
The $site_id value acts as a namespace within the database.
This allows multiple Horizon QCMS installations to:
Share the same database connection
Keep content separated
Maintain independent settings
Use their own pages, menus, modules, and usernames.
As long as each installation uses a unique $site_id, Horizon QCMS can distinguish between them without requiring multiple databases.
Example Site Structure
Plain Text
/
├── Main Website
│
└── Horizon QCMS │
└── /articles/
└── Horizon QCMS
In this example: The root installation manages the main website.
The /articles/ installation manages a dedicated article archive.
Both installations use the same database.
Each installation maintains its own content.
Complete Configuration
Example
Main website
| $user = "root"; $password = ""; $host = "localhost"; $dbname = "my_database"; $site_id = "new_horizon"; ?> |
Articles section
| $user = "root"; $password = ""; $host = "localhost"; $dbname = "my_database"; $site_id = "articles"; ?> |
Everything else in the configuration file can remain unchanged.
Final Notes
Using multiple Horizon QCMS installations is a simple and effective way to organize larger websites. Instead of managing multiple databases or complex configurations, you can create dedicated sections while continuing to use the same hosting account and database server.
This approach offers additional flexibility and makes Horizon QCMS suitable for both small websites and large content-driven projects.