Using php insted of html?

How i can use index2.php instead of index2.html?

You can name the file index.php and it’ll be the index page.