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