If that's the error you're seeing, that certainly looks like an internal server error message (which is what the 500 code means). There should be further details in your logs to make it clearer what's going on.
Is this IIS? You may need to make specific configurations to pass through our error messages. There's a line included in the Friendly URL web.config that does that: https://xenforo.com/help/friendly-urls/