BUT.. I can't find that "Thanks for creating an account" text anywhere. So you've either already customised it or this isn't been generated by core Moodle.
Howard Miller
Posts made by Howard Miller
You're not asking the right question 
However, the answer to "how do I change the text" is Language_customisation
However, the answer to "how do I change the text" is Language_customisation
Please resist any temptation to modify Moodle core code. It usually causes regret.
*something* is causing it. I would have a very close look at your web server logs.
So... to be clear... you are saying that you have checked the line in the code and it definitely says .php, yet the error message is that it is failing to load .nhp?
One small thing... the 'cache' configuration for Redis is in the admin UI. If you are using Redis for sessions, then that is in config.php. Personally, I would do both but the session stuff is less critical for performance. However, resist using the database for sessions. That can really trouble database performance.