symlink
symlink

Reputation: 12218

ModX two domains, one site

I followed the instructions in ModX: The Official Guide, and created a context for my new site. Then I created the site in Plesk, and put the index.php and core.config.php files from the original site in the httpdocs directory. The site keeps throwing a 503 error, though. Here is the code that is throwing the error:

if (!@include_once (MODX_CORE_PATH . "model/modx/modx.class.php")) {
    $errorMessage = 'Site temporarily unavailable';
    @include(MODX_CORE_PATH . 'error/unavailable.include.php');
    header('HTTP/1.1 503 Service Unavailable');
    echo "<html><title>Error 503: Site temporarily unavailable</title><body><h1>Error 503</h1><p>{$errorMessage}</p></body></html>";
    exit();
}

In other words, the new domain isn't able to load the file from the existing one. Is this a CORS issue? I tried adding a header to the PHP file to allow access to the original site, to no avail.

Thanks!

Upvotes: 1

Views: 316

Answers (1)

Insyte
Insyte

Reputation: 2236

MODX_CORE_PATH in core.config.php needs to point to the core folder of your modx installation.

Upvotes: 2

Related Questions