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
The cache folder sits inside of the core folder. Create it and see if it works I guess?
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.
Arghh. I just wrote you a long post which was lost because of us posting simultaneously (not your fault).
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!