Please do the following changes in code files to change environment -
Open file \index.php in any editor carefully from your installation folder and find
and change it to
Be aware that in development mode you may see some errors and deprecation warnings, for this reason, it’s always recommended to set the environment to “production” .
Do not forget to turn it back to production when you have finished the error checking or debugging