On my dev laptop (Windows), Apache kept crashing instantly upon trying to load Wordpress. This is immediate and sudden, so nothing getting written to access logs or error logs in Apache or PHP.
I quickly figured out that it was crashing when it hit the first require() statement... so down the rabbit hole to that file and the whole string of Russian dolls.
So I added an
echo "Quitting at " . __FILE__ . ":" . __LINE__; die();
And kept moving that down to the bottom of the file and the file was fine. Remove the debug statements and the script executes to the next require() and fails. Same thing.
At the next block or require statements, I go to all the files and add a space, save, delete the space, save. Everything works until the *next* require statement.
So I think, there's something weird on file permissions or last modified time stamp or something, so I run something to update the last modified to now()... and I'm back where I started.
I do a git checkout live to switch to a known working branch... and I'm still back to crashing instantly.
Haven't solved it yet, but I know it's a problem with that set of WP files, because the Drupal sites on that same server run fine and anything on that site that does not invoke require() runs fine. Since the permission models between Windows and Linux don't really match, I'm wondering if it's something related to pulling the code of Linux, though it has never happened to me before.
Anyway... mostly just venting... so frustrating. I'll re-download all the source files and start from a clean virtual host and see what happens there.