We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Multi Site Manager Problem

Development and Programming

mabron's avatar
mabron
3 posts
4 years ago
mabron's avatar mabron

Running EE 5.3.2

I am getting a file path error when trying to load ‘domain2’ or http://zekauai.com

Error: Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

domain1 = http://zacharyengineering.com

domain2 = http://zekauai.com

I have tried every path option I know

Server Absolute Path Relative Path Full URL Path

Same Error

Folder Structure:

server:/home/websites/zacharyengineering.com/index.php

server:/home/websites/zekauai.com/index.php

All files in question are set to 755

       
mabron's avatar
mabron
3 posts
4 years ago
mabron's avatar mabron
<?php
/**
 * This source file is part of the open source project
 * ExpressionEngine (https://expressionengine.com)
 *
 * @link      https://expressionengine.com/
 * @copyright Copyright (c) 2003-2019, EllisLab Corp. (https://ellislab.com)
 * @license   https://expressionengine.com/license Licensed under Apache License, Version 2.0
 */

/*
 * --------------------------------------------------------------------
 *  System Path
 * --------------------------------------------------------------------
 *
 * The following variable contains the server path to your
 * ExpressionEngine "system" folder.  By default the folder is named
 * "system" but it can be renamed or moved for increased security.
 * Indicate the new name and/or path here. The path can be relative
 * or it can be a full server path.
 *
 * https://ellislab.com/expressionengine/user-guide/installation/best_practices.html
 *
 */
 $system_path = '../zacharyengineering.com/zachsystem/';


/*
 * --------------------------------------------------------------------
 *  Multiple Site Manager
 * --------------------------------------------------------------------
 *
 * Uncomment the following variables if you are using the Multiple
 * Site Manager: https://docs.expressionengine.com/latest/msm/index.html
 *
 * Set the Short Name of the site this file will display, the URL of
 * this site's admin.php file, and the main URL of the site (without
 * index.php)
 *
 */
   $assign_to_config['site_name']  = 'ZE_Kauai';
   $assign_to_config['cp_url'] = 'http://zekauai.com/admin.php';
   $assign_to_config['site_url'] = 'http://zekauai.com';


/*
 * --------------------------------------------------------------------
 *  Error Reporting
 * --------------------------------------------------------------------
 *
 * PHP and database errors are normally displayed dynamically based
 * on the authorization level of each user accessing your site.
 * This variable allows the error reporting system to be overridden,
 * which can be useful for low level debugging during site development,
 * since errors happening before a user is authenticated will not normally
 * be shown.  Options:
 *
 * $debug = 0;  Default setting. Errors shown based on authorization level
 *
 * $debug = 1;  All errors shown regardless of authorization
 *
 * NOTE: Enabling this override can have security implications.
 * Enable it only if you have a good reason to.
 *
 */
 $debug = 0;


/*
 * --------------------------------------------------------------------
 *  CUSTOM CONFIG VALUES
 * --------------------------------------------------------------------
 *
 * The $assign_to_config array below will be passed dynamically to the
 * config class. This allows you to set custom config items or override
 * any default config values found in the config.php file.  This can
 * be handy as it permits you to share one application between more then
 * one front controller file, with each file containing different
 * config values.
 *
 * Un-comment the $assign_to_config array below to use this feature
 *
 * NOTE: This feature can be used to run multiple EE "sites" using
 * the old style method.  Instead of individual variables you'll
 * set array indexes corresponding to them.
 *
 */
// $assign_to_config['template_group'] = '';
// $assign_to_config['template'] = '';
// $assign_to_config['site_index'] = '';
// $assign_to_config['site_404'] = '';
// $assign_to_config['global_vars'] = array(); // This array must be associative


/*
 * --------------------------------------------------------------------
 *  END OF USER CONFIGURABLE SETTINGS.  DO NOT EDIT BELOW THIS LINE
 * --------------------------------------------------------------------
 */


/*
 * ---------------------------------------------------------------
 *  Disable all routing, send everything to the frontend
 * ---------------------------------------------------------------
 */
 $routing['directory'] = '';
 $routing['controller'] = 'ee';
 $routing['function'] = 'index';

/*
 * --------------------------------------------------------------------
 *  Resolve the system path for increased reliability
 * --------------------------------------------------------------------
 */

 if (realpath($system_path) !== FALSE)
 {
  $system_path = realpath($system_path);
 }

 $system_path = rtrim($system_path, '/').'/';

/*
 * --------------------------------------------------------------------
 *  Now that we know the path, set the main constants
 * --------------------------------------------------------------------
 */
 // The name of this file
 define('SELF', basename(__FILE__));

 // Path to this file
 define('FCPATH', __DIR__.'/');

 // Path to the "system" folder
 define('SYSPATH', $system_path);

 // Name of the "system folder"
 define('SYSDIR', basename($system_path));

 // The $debug value as a constant for global access
 define('DEBUG', $debug);  unset($debug);

/*
 * --------------------------------------------------------------------
 *  Set the error reporting level
 * --------------------------------------------------------------------
 */
 if (DEBUG == 1)
 {
  error_reporting(E_ALL);
  @ini_set('display_errors', 1);
 }
 else
 {
  error_reporting(0);
 }

/*
 *---------------------------------------------------------------
 * LOAD THE BOOTSTRAP FILE
 *---------------------------------------------------------------
 *
 * And away we go...
 *
 */
 if ( ! file_exists(SYSPATH.'ee/EllisLab/ExpressionEngine/Boot/boot.php'))
 {
  header('HTTP/1.1 503 Service Unavailable.', TRUE, '503');
  exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
 }

 require_once SYSPATH.'ee/EllisLab/ExpressionEngine/Boot/boot.php';

// EOF
       
Robin Sowell's avatar
Robin Sowell
13,158 posts
4 years ago
Robin Sowell's avatar Robin Sowell

Looping back to note we got this ironed out. Looks like there was some server issues complicating things.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.