Update index.php

Changing method to retrieve Apache and PHP version