apache2 check enabled port ubunut code example Example: check apache running port ubuntu <?php phpinfo();