Manual:$wgScriptExtension/en

Details
Extension to append to script names by default. This can either be  or.

Some hosting providers use PHP 4 for *.php files, and PHP 5 for *.php5. This variable is provided to support those providers.