We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53518
    • 5 Posts
    Hi - After a server crash, the website running MODx 2.4 does not work anymore. The hosting company says that it's because of a missing cache folder.

    While I don't believe that, the question still is, how is the cache folder being recreated?

    Sidenote: In case anyone is wondering and can contribute - this is what the log says:
    [Wed May 31 16:52:06.684849 2017] [fcgid:warn] [pid 13063] (104)Connection reset by peer: [client IP removed:49924] mod_fcgid: error reading data from FastCGI server
    [Wed May 31 16:52:06.713771 2017] [core:error] [pid 13063] [client IP removed:49924] End of script output before headers: php56-cgi
      • 17301
      • 932 Posts
      The cache folder sits inside of the core folder. Create it and see if it works I guess?
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 53518
        • 5 Posts
        Quote from: lkfranklin at Jun 08, 2017, 04:57 PM
        The cache folder sits inside of the core folder. Create it and see if it works I guess?
        Thx, unfortunately not. I cannot even run the /manager. That's why I don't believe the hosting company's conclusion that it's that folder missing.
          • 3749
          • 24,544 Posts
          You should be able to use the File Manager in cPanel to create it. That will also let you see if it's there or not. All you need is an empty directory under the core/ directory (core/cache). MODX will repopulate it.

          You should also be able to see it (and create it) in an FTP client if you have an FTP account set up.

          If neither of those is an option, I would definitely change hosting companies. There are lots of critical situations that can come up in MODX where you need to see and/or edit MODX files or check and/or edit the database.

            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
            • 53518
            • 5 Posts
            Quote from: BobRay at Jun 08, 2017, 08:33 PM
            You should be able to use the File Manager in cPanel to create it. That will also let you see if it's there or not. All you need is an empty directory under the core/ directory (core/cache). MODX will repopulate it.

            You should also be able to see it (and create it) in an FTP client if you have an FTP account set up.

            If neither of those is an option, I would definitely change hosting companies. There are lots of critical situations that can come up in MODX where you need to see and/or edit MODX files or check and/or edit the database.


            Hi BobRay - Thanks for that info.

            I actually have created the cache subfolder, and no difference. I am not familiar with MODx (years of experience with WP though), but a cache folder being the cause of an error 500 sounds to me like the hosting company does not know what they are talking about.

            And yes, I'm setting up another site just now, to get us out of that hosting mess.
              • 3749
              • 24,544 Posts
              Arghh. I just wrote you a long post which was lost because of us posting simultaneously (not your fault). sad

              I'll try to recreate it.

              If the cache folder is not writable by PHP, it could possibly cause a 500 error when MODX tries to repopulate it.

              Repairing all tables in the DB is another thing to try if you have that option.

              Another possibility is a bad plugin. You can disable plugins in the DB in the modx_site_plugins table (put a 1 in the 'disabled' field).

              For future reference: https://bobsguides.com/modx-friendly-hosts.html

              I would never use a host that didn't provide cPanel and DB access through PhpMyAdmin, or a host owned by EIG.

              Welcome to MODX! smiley
                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