We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44866
    • 50 Posts
    Hi Guys,
    I'm trying to create a development site that mirrors my production site.
    I have already received some assistance in another thread but I have progressed past that problem so I decided to start a new thread with the current problem.
    (Previous Post https://forums.modx.com/thread/95849/error-503-site-temporarily-unavailable#dis-post-518866)

    Development Machine
    ===================
    I'm have installed Modx Revo version 2.2.6-PL which is the same version production. I copied the setup folder off the production server and ran it. Setup connected to my local My local MYSQL db no problem. This was restored from a dump.sql file.

    The server is running Debian Wheezy. Apache is version 2.2.22 and PHP is Version 5.4.4-14+deb7u3.

    All the static files that make up my web pages were copied off production into development using FTP.
    I have done a file compare of the contents of all files and nothing seems to be corrupted.

    The production server was in a subdirectory (secret web server business)
    My development server is in the root directory (/var/www/)


    The Problem now.
    ==================
    The Manager Screen Doesn't load properly.
    Really simple text boxes come up in my browser but there isn't any formatting.
    I can see where the problem is if I view the source code in my browser.
    The lines that start like this href="/assets/ext3/resources
    Have a leading slash in front of them. I think this should just be a relative path.
    i.e. href="assets/ext3/resources...
    Similar to the src=" lines further down.

    If I look at my production site it looks like this href="/manager/assets/ext3/resources which kind of blows my relative path theory.

    I have been back through and double checked my .htaccess file in the root dir but can see any problems.
    I have attached it in case it helps. I have commented out the RewriteBase / line but it didn't make any difference.
    I don't have a .htaccess file in the /manager directory.

    Any Ideas why this mucking up the URL's?

    David

    <head>
    	<title>Manager Login</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            
        <link rel="stylesheet" type="text/css" href="/assets/ext3/resources/css/ext-all-notheme-min.css" />
    	<link rel="stylesheet" type="text/css" href="/templates/default/css/xtheme-modx.css" />
    	<link rel="stylesheet" type="text/css" href="/templates/default/css/index.css" />
        <link rel="stylesheet" type="text/css" href="/templates/default/css/login.css" />
        
        <script src="assets/ext3/adapter/ext/ext-base.js" type="text/javascript"></script>
        <script src="assets/ext3/ext-all.js" type="text/javascript"></script>
        <script src="assets/modext/core/modx.js" type="text/javascript"></script>
    
        <script src="assets/modext/core/modx.component.js" type="text/javascript"></script>
        <script src="assets/modext/util/utilities.js" type="text/javascript"></script>
    	<script src="assets/modext/widgets/core/modx.panel.js" type="text/javascript"></script>
        <script src="assets/modext/widgets/core/modx.window.js" type="text/javascript"></script>
        <script src="assets/modext/sections/login.js" type="text/javascript"></script>

    This question has been answered by multiple community members. See the first response.

      • 44866
      • 50 Posts
      Small Progress.
      I have changed my config.inc.php
      From this
      if (!defined('MODX_MANAGER_PATH')) {^M
      $modx_manager_path= '/var/www/manager/';^M
      $modx_manager_url= '/';^M
      define('MODX_MANAGER_PATH', $modx_manager_path);^M
      define('MODX_MANAGER_URL', $modx_manager_url);^M
      }^M

      To this
      if (!defined('MODX_MANAGER_PATH')) {^M
      $modx_manager_path= '/var/www/manager/';^M
      $modx_manager_url= '/manager/';^M
      define('MODX_MANAGER_PATH', $modx_manager_path);^M
      define('MODX_MANAGER_URL', $modx_manager_url);^M
      }^M

      Now I have changed the config to be similar to what I have in production.
      Strange that it is different to the other definitions in this file where "Manager" seems to be specified twice.

      Now the Manager Login Page Displays correctly but once I log in the next screen is all plain text.
      Just a list of URL's down the screen with no formatting. Nothing does much.

      Has anyone seen this behaviour before?

      Thanks
      David




        • 44866
        • 50 Posts
        Update:

        The only thing I can see is some 404's in the Access log.
        Nothing new in the Error log when I load the Manager Page.

        192.168.8.59 - - [23/Jan/2015:15:46:46 +1100] "POST /manager/ HTTP/1.1" 302 643 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:47 +1100] "GET /manager HTTP/1.1" 301 558 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:47 +1100] "GET /manager/ HTTP/1.1" 200 26284 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:48 +1100] "GET /lang.js.php?ctx=mgr&topic=topmenu,file,resource,welcome,configcheck&action= HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:48 +1100] "GET /manager/min/index.php?f=/manager/templates/default/css/xtheme-modx.css,/manager/templates/default/css/index.css HTTP/1.1" 400 576 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:48 +1100] "GET /layout/modx.config.js.php?action=&wctx=mgr HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:49 +1100] "GET /manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js HTTP/1.1" 400 576 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:49 +1100] "GET /manager/min/index.php?f=/manager/assets/modext/widgets/modx.treedrop.js,/manager/assets/modext/widgets/windows.js,/manager/assets/modext/widgets/resource/modx.tree.resource.js,/manager/assets/modext/widgets/element/modx.tree.element.js,/manager/assets/modext/widgets/system/modx.tree.directory.js,/manager/assets/modext/core/modx.view.js,/manager/assets/modext/core/modx.layout.js HTTP/1.1" 400 576 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        192.168.8.59 - - [23/Jan/2015:15:46:49 +1100] "GET /manager/min/index.php?f=/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js,/manager/assets/modext/widgets/modx.panel.welcome.js,/manager/assets/modext/sections/welcome.js HTTP/1.1" 400 576 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
        
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          Hi there,

          Welcome to MODX! I think I see what's going wrong for you.

          You will need to modify your config.inc.php back to original. All that which you added or changed, is completely unnecessary. Because your other site was in a subfolder, you may have to take that subfolder path out of the config files that you took from your subfolder installation. A new install in root however shouldn't show the subfolder path in any of these files. It really depends on if you replaced them with the config files from the subfolder site after you installed MODX in the root of your new server.

          Check all of the config files referenced here http://rtfm.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server (about half way down you'll find all the config file paths) to make sure that the subfolder is not shown (the installation would have automatically added this to the config files for the subfolder site).

          Uncomment the rewrite base in the .htaccess file, this is necessary for FURLs, assuming you have that turned on. Make sure that you template head contains <base href="[[++site_url]]" /> if you're using FURLs. More information can be found here: http://rtfm.modx.com/revolution/2.x/administering-your-site/using-friendly-urls (follow the steps on this page exactly, FURLs will work out of the gate).

          After all this, go to the core/cache folder and delete all the files contained within. If, when you open the manager after this you still see any kind of blank page, go into the database table system_settings, locate compress_css and compress_js and set both to 0. Again, delete the files in core/cache and it should be happy again.

          If after you do the above you still have issues, do let us know and we'll go from there.
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 44866
            • 50 Posts
            Hi Frogabog,
            Thanks for the detailed reply. I'll follow these steps and let you know how I get on.
            It may take me a few days to get to it as this job gets pushed aside by other more important stuff.

            David.
              • 44866
              • 50 Posts
              Hi Frogabog,
              I have followed your advice and gone back through the config.inc.php and I couldn’t find any settings with sub folders. I changed the modx_manager_url back to $modx_manager_url= '/';

              “The How to move your site” document was one that I have already followed but I have been back through it.

              I have uncommented the rewrite base in .htaccess file.
              I can’t follow the FURL document you mention as it uses the management screens that I can’t get to load properly.

              I have removed all files under the core/cache folder and restarted the apache2 service.

              The manager login screen still fails to load correctly. This is pretty much as expected as this seems the same as the configuration I have tried already.

              I have checked the the compress_css and compress_js settings and they were both already set to 0. This was advice I followed in a previous thread. (Specified above)

              The manager login screen does not display correctly. (see attached)
              My actual web pages do display fairly well. The only problem I see straight off is that my thumbnail pictures aren’t displayed. I think they use something called phpthumbsof but I haven’t looked much into that yet.

              Here are the 404's I see when I try and display my manager login screen.
              Clearly the it is looking for things in the root folder when is should be looking in the manager folder

              I'm at a bit of a loss now.

              192.168.8.59 - - [29/Jan/2015:21:02:06 +1100] "GET /manager/ HTTP/1.1" 200 1944 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36"
              192.168.8.59 - - [29/Jan/2015:21:02:06 +1100] "GET /assets/ext3/resources/css/ext-all-notheme-min.css HTTP/1.1" 404 550 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36"
              192.168.8.59 - - [29/Jan/2015:21:02:09 +1100] "GET /templates/default/css/xtheme-modx.css HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36"
              192.168.8.59 - - [29/Jan/2015:21:02:09 +1100] "GET /templates/default/css/index.css HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36"
              192.168.8.59 - - [29/Jan/2015:21:02:09 +1100] "GET /templates/default/css/login.css HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36"
              


              Here is a copy of my current config.inc.php file.
              I'm at a bit of a loss what to try next
              Thanks
              David

              <?php
              /**
               *  MODX Configuration file
               */
              $database_type = 'mysql';
              $database_server = 'localhost';
              $database_user = 'vjraycom_user';
              $database_password = '+sOQds3CRkh;';
              $database_connection_charset = 'latin1';
              $dbase = 'vjraycom_db';
              $table_prefix = 'vj_';
              $database_dsn = 'mysql:host=localhost;dbname=vjraycom_db;charset=latin1';
              $config_options = array (
              );
              $driver_options = array (
              );
              
              $lastInstallTime = 1421807644;
              
              $site_id = 'modx54bf101cb51d11.35327402';
              $site_sessionname = 'SN50f7730d85491';
              $https_port = '443';
              $uuid = '8ca7dac9-27dc-4eeb-8ffc-659934cf5604';
              
              if (!defined('MODX_CORE_PATH')) {
                  $modx_core_path= '/var/www/core/';
                  define('MODX_CORE_PATH', $modx_core_path);
              }
              if (!defined('MODX_PROCESSORS_PATH')) {
                  $modx_processors_path= '/var/www/core/model/modx/processors/';
                  define('MODX_PROCESSORS_PATH', $modx_processors_path);
              }
              if (!defined('MODX_CONNECTORS_PATH')) {
                  $modx_connectors_path= '/var/www/connectors/';
                  $modx_connectors_url= '/';
                  define('MODX_CONNECTORS_PATH', $modx_connectors_path);
                  define('MODX_CONNECTORS_URL', $modx_connectors_url);
              }
              if (!defined('MODX_MANAGER_PATH')) {
                  $modx_manager_path= '/var/www/manager/';
                  $modx_manager_url= '/';
                  define('MODX_MANAGER_PATH', $modx_manager_path);
                  define('MODX_MANAGER_URL', $modx_manager_url);
              }
              if (!defined('MODX_BASE_PATH')) {
                  $modx_base_path= '/var/www/';
                  $modx_base_url= '/';
                  define('MODX_BASE_PATH', $modx_base_path);
                  define('MODX_BASE_URL', $modx_base_url);
              }
              if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
                  $isSecureRequest = false;
              } else {
                  $isSecureRequest = ((isset ($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') || $_SERVER['SERVER_PORT'] == $https_port);
              }
              if (!defined('MODX_URL_SCHEME')) {
                  $url_scheme=  $isSecureRequest ? 'https://' : 'http://';
                  define('MODX_URL_SCHEME', $url_scheme);
              }
              if (!defined('MODX_HTTP_HOST')) {
                  if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
                      $http_host='192.168.8.48';
                      define('MODX_HTTP_HOST', $http_host);
                  } else {
                      $http_host= $_SERVER['HTTP_HOST'];
                      if ($_SERVER['SERVER_PORT'] != 80) {
                          $http_host= str_replace(':' . $_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST
                      }
                      $http_host .= ($_SERVER['SERVER_PORT'] == 80 || $isSecureRequest) ? '' : ':' . $_SERVER['SERVER_PORT'];
                      define('MODX_HTTP_HOST', $http_host);
                  }
              }
              if (!defined('MODX_SITE_URL')) {
                  $site_url= $url_scheme . $http_host . MODX_BASE_URL;
                  define('MODX_SITE_URL', $site_url);
              }
              if (!defined('MODX_ASSETS_PATH')) {
                  $modx_assets_path= '/var/www/assets/';
                  $modx_assets_url= '/';
                  define('MODX_ASSETS_PATH', $modx_assets_path);
                  define('MODX_ASSETS_URL', $modx_assets_url);
              }
              if (!defined('MODX_LOG_LEVEL_FATAL')) {
                  define('MODX_LOG_LEVEL_FATAL', 0);
                  define('MODX_LOG_LEVEL_ERROR', 1);
                  define('MODX_LOG_LEVEL_WARN', 2);
                  define('MODX_LOG_LEVEL_INFO', 3);
                  define('MODX_LOG_LEVEL_DEBUG', 4);
              }
              if (!defined('MODX_CACHE_DISABLED')) {
                  $modx_cache_disabled= false;
                  define('MODX_CACHE_DISABLED', $modx_cache_disabled);
              }
              
              

                • 44866
                • 50 Posts
                Seems I can't attach files. It has been driving me insane. I have had to redo the above post several times.
                  • 10208 ☆ A M B ☆
                  • 1,780 Posts
                  Did you look at the other config files listed in the rtfm? Specifically:

                  /config.core.php
                  /connectors/config.core.php
                  /manager/config.core.php
                    Frogabog- MODX Websites in Portland Oregon
                    "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                    Having server issues? These guys have MODX Hosting perfected - SkyToaster
                    • 44866
                    • 50 Posts
                    Hi Frogabog,
                    Yes I have checked those files. They are quite small and have the correct paths in them.

                    /var/www/config.core.php
                    Looks like this
                    <?php
                    define('MODX_CORE_PATH', '/var/www/core/');
                    define('MODX_CONFIG_KEY', 'config');

                    /var/www/connectors/config.core.php
                    Looks like this
                    <?php
                    define('MODX_CORE_PATH', '/var/www/core/');
                    define('MODX_CONFIG_KEY', 'config');

                    /var/www/manager/config.core/php
                    Looks like this
                    <?php
                    define('MODX_CORE_PATH', '/var/www/core/');
                    define('MODX_CONFIG_KEY', 'config');


                    The above was all cut and paste so I'd say the files are identical.
                    The original files I transferred from the production system had paths matching the sub folders in production.

                    The file /var/www/.htaccess has the following lines uncommented. There are no .htaccess files in any sub folders.

                    RewriteEngine On
                    RewriteBase /
                    DirectoryIndex index.php
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

                    With the permissions
                    -rwxrwxr-x 1 root wwwroot 3545 Jan 29 17:17 .htaccess

                    I loaded the manager logon screen in my browser again and here are all the access.log entries.
                    (nothing in the error log)
                    It starts off OK looking in the /manager folder then about half way down it starts looking for the css files in the wrong place. All those files do exist under the /manager folder except for favicon.ico which doesn't exist at all.

                    Any ideas what could be going wrong here?

                    Thanks
                    David

                    192.168.8.49 - - [02/Feb/2015:12:57:59 +1100] "GET /manager HTTP/1.1" 301 559 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:57:59 +1100] "GET /manager/ HTTP/1.1" 200 2040 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/ext3/adapter/ext/ext-base.js HTTP/1.1" 200 10894 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.22
                    14.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/modext/core/modx.js HTTP/1.1" 200 6329 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safa
                    ri/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/modext/core/modx.component.js HTTP/1.1" 200 3913 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.22
                    14.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/modext/util/utilities.js HTTP/1.1" 200 14713 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.9
                    4 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/modext/widgets/core/modx.panel.js HTTP/1.1" 200 4341 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.
                    0.2214.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/modext/widgets/core/modx.window.js HTTP/1.1" 200 2228 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40
                    .0.2214.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/modext/sections/login.js HTTP/1.1" 200 769 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94
                    Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /manager/assets/ext3/ext-all.js HTTP/1.1" 200 198910 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari
                    /537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /assets/ext3/resources/css/ext-all-notheme-min.css HTTP/1.1" 404 550 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.
                    0.2214.94 Safari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /templates/default/css/login.css HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/5
                    37.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /templates/default/css/index.css HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/5
                    37.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:00 +1100] "GET /templates/default/css/xtheme-modx.css HTTP/1.1" 404 551 "http://192.168.8.48/manager/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Sa
                    fari/537.36"
                    192.168.8.49 - - [02/Feb/2015:12:58:02 +1100] "GET /favicon.ico HTTP/1.1" 404 550 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36"
                    
                    
                      • 44866
                      • 50 Posts
                      UPDATE
                      After going and finding the login.tpl file here /var/www/manager/templates/default/security/
                      I realised that this is the code that has the inconsistent URL's in the browser source listing for the login page.
                      When I view the source for the logon page and click on the links, the links with "config.manager_url" in front of them don't work and the links with a straight relative path do work. So this tells me there is still something wrong with the setting config.manager_url from the config.inc.php file.

                      extract from login.tpl
                      <head>
                              <title>{$_lang.login_title}</title>
                              <meta http-equiv="Content-Type" content="text/html; charset={$_config.modx_charset}" />
                          {if $_config.manager_favicon_url}<link rel="shortcut icon" type="image/x-icon" href="{$_config.manager_favicon_url}" />{/if}
                      
                          <link rel="stylesheet" type="text/css" href="{$_config.manager_url}assets/ext3/resources/css/ext-all-notheme-min.css" />
                              <link rel="stylesheet" type="text/css" href="{$_config.manager_url}templates/default/css/xtheme-modx.css" />
                              <link rel="stylesheet" type="text/css" href="{$_config.manager_url}templates/default/css/index.css" />
                          <link rel="stylesheet" type="text/css" href="{$_config.manager_url}templates/default/css/login.css" />
                      
                          <script src="assets/ext3/adapter/ext/ext-base.js" type="text/javascript"></script>
                          <script src="assets/ext3/ext-all.js" type="text/javascript"></script>
                          <script src="assets/modext/core/modx.js" type="text/javascript"></script>
                      
                          <script src="assets/modext/core/modx.component.js" type="text/javascript"></script>
                          <script src="assets/modext/util/utilities.js" type="text/javascript"></script>
                              <script src="assets/modext/widgets/core/modx.panel.js" type="text/javascript"></script>
                          <script src="assets/modext/widgets/core/modx.window.js" type="text/javascript"></script>
                          <script src="assets/modext/sections/login.js" type="text/javascript"></script>
                      
                      


                      I tried taking the trailing slash off /var/www/manager but that didn't help. It totally broke the page so I put it back.
                      I then took the / out of the modx_manager_url as shown below.

                      The manager page appears to work now although I obviously haven't tested everything.

                      The question now is why is this different from what the documents tell me to do?
                      Also what does this mean for all the other url settings that contain just '/' in the config.inc.php?

                      Thanks
                      David

                      extract from config.inc.php
                      if (!defined('MODX_MANAGER_PATH')) {^M
                          $modx_manager_path= '/var/www/manager/';^M
                          $modx_manager_url= '';^M
                          define('MODX_MANAGER_PATH', $modx_manager_path);^M
                          define('MODX_MANAGER_URL', $modx_manager_url);^M
                      }^M