You can try, on linux,
Code:
# netstat -lpn | grep httpd
.. if you know that the server is httpd (apache), there you can figure out what ports and address has apache bound to as well as process' pid.
on freebsd systems try
Code:
# sockstat -ln | grep httpd