We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37099
    • 338 Posts
    I'm trying out a new host and the front end seems really slow and I get these errors:

    [2013-08-28 13:19:48] (ERROR @ /connectors/lang.js.php) Could not cache system settings.
    [2013-08-28 13:19:48] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
    [2013-08-28 13:19:48] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
    [2013-08-28 13:19:48] (ERROR @ /connectors/lang.js.php) Could not cache context settings for mgr.
    [2013-08-28 13:19:48] (ERROR @ /connectors/layout/modx.config.js.php) Error caching lexicon topic 


    I've tried with php 5.3 and 5.4

    The server meets all the server requirements except the only thing that appears to be missing is --with-apxs2=/usr/local/bin/apxs from the config.

    Any ideas?

    Thanks
    Mike
      • 37099
      • 338 Posts
      Oh and I tried with 2.2.7 and 2.2.8 and I set the cache directory to 777
        • 3749
        • 24,544 Posts
        On many hosts, 777 will fail. Did you try 755?
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 37099
          • 338 Posts
          Yes, tried 755 first. I've abandoned that hosting plan now and will try another of their offerings instead.
            • 42046
            • 436 Posts
            Which host was?
              • 3749
              • 24,544 Posts
              I would say your problem is with the host, not the plan.

              MODX-friendly hosts:

              SkyToaster: http://bit.ly/164aT9l
              Bluehost: http://bit.ly/Hb5CAY
              Arvixe: http://bit.ly/YgFGHl
              A2: http://bit.ly/1943MLT
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 10487 MODX Staff
                • 1,535 Posts
                A lot of shared hosts are more comfortable when folders are 0775 and files are 0664. Also, check the ownership of the cache directory to make sure the group is set to whatever PHP is running as.
                  Garry Nutting
                  Senior Developer
                  MODX, LLC

                  Email: [email protected]
                  Twitter: @garryn
                  Web: modx.com
                  • 37099
                  • 338 Posts
                  I've used this host (TSO Hosts) before without any problems for MODX on their cPanel plan. This was their 'cloud hosting' offering which had a different control panel, different server setup and so, I guess, different server settings.

                  I tried playing with the permissions but that didn't seem to help though I didn't specifically check the settings you suggested Garry, and can't now as I've changed it back to a cPanel plan.

                  Thanks for the host suggestions Bob but I want a UK based provider as my clients are UK based.

                  MIke
                    • 3749
                    • 24,544 Posts
                    SkyToaster has a server in London. wink

                    SkyToaster: http://bit.ly/164aT9l
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 42046
                      • 436 Posts
                      Actually I've been talking to a guy at TSOHost about this very issue for a little while. The root of the problem seems to possibly be scripts that use disk based caching (they've noticed this a couple of times now with different scripts).

                      What appears to happen is that when an action run by a script gets split between several different servers within the cluster, and the different servers are trying to access the same cache file at the same time, it's locked by the first server to access it and the others can't read it, so in MODX you get the "Could not cache system settings" errors etc when trying to read back the cache file.

                      With MODX this doesn't appear to affect resource caching, just the various system cache files.