When I go to
http://www.yoursite.com/setup/
I get this error:
MODX_CORE_PATH is invalid
MODX_CORE_PATH = /core/
directory structure = C:\HostingSpaces\usernet\yourwebsite.com\wwwroot\core and C:\HostingSpaces\usernet\yourwebsite.com\wwwroot\setup
I am trying to install on a windows server 2008 64 bit machine.
I am not using the advanced install zip file.
Is there something I am doing wrong because when I look in the code in modinstall.class.php
it has this function
public function findCore() {
$exists = false;
if (file_exists(MODX_CORE_PATH) && is_dir(MODX_CORE_PATH)) {
if (file_exists(MODX_CORE_PATH . ’xpdo/xpdo.class.php’) && file_exists(MODX_CORE_PATH . ’model/modx/modx.class.php’)) {
$exists = true;
}
}
if (!$exists) {
include(MODX_SETUP_PATH . ’templates/findcore.php’);
die();
}
}
file_exists(MODX_CORE_PATH) will not be a file it is always a path and also shouldn’t realpath(’’) be used when looking for a file because you never know where the file is actually located in the root directory of a server.