You can try the whereis command if you know the name of a binary a program uses. For instance, for apache2, you could issue whereis apache2
. My output for that command is:
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/include/apache2 /usr/man/man8/apache2.8.gz /usr/share/man/man8/apache2.8.gz
Unfortunately, it won't give you the document root or anything, but it's a start.
Also, I'm not sure about Redhat, but on most systems, these paths are common:
Apache data: /var/www
Apache config: /etc/apache or /etc/apache2
MySQL data : /var/lib/mysql
My Java is installed at /opt/blackdown-jre-version.
I hope that helps.