how to check which port apache is running ubuntu code example Example: check apache running port ubuntu <?php phpinfo();