Installing alongside an existing site
Last updated Aug 15th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$204 per month—let's make that $500!
Learn moreUse this page when you are not installing MODX into a clean, empty web root. For the normal empty-hosting case, follow Basic Installation.
Always back up existing files and databases before you change anything.
Subdirectory install¶
Installing into a subdirectory (for example https://example.com/modx/) is a good approach when:
- You are building a replacement site while the current site stays online
- You want a temporary or staging copy on the same host
Complete Basic Installation with the files in that subdirectory, and open https://example.com/modx/setup/ (adjust the path). When the new site is ready, you can move it to the domain root, or keep it in the subdirectory and optionally rewrite URLs with your web server.
Existing static HTML site¶
You can unpack MODX next to an existing index.html (or similar) while you build templates and content. Until you are ready to go live:
- Do not enable Friendly URLs yet if that would make MODX catch requests meant for your static files.
- When you cut over, rename or remove the old static entry files (and any conflicting assets), then enable Friendly URLs if you want them.
Existing CMS or other dynamic app¶
Do not unpack MODX into the same directory as another live CMS or app. Use a subdirectory (or a separate vhost/domain), install there, and cut over only after the new site works.
Temporary URL or pre-DNS folder¶
Some hosts give you a temporary URL or folder before DNS points at the account. You can install there, but after the final domain and path are fixed you must update MODX paths. Follow Moving Your Site, and in particular review:
-
core/config/config.inc.php -
config.core.php(site root) -
manager/config.core.php -
connectors/config.core.php
Clear core/cache/ after path changes.
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$204 per month—let's make that $500!
Learn more










