You should be careful in installing things on a system you are not familiar with as it can break things.
apache version: type httpd -V at console.
It is possible to simulate the installation of packages with the rpm or yum command. It will then try to resolve dependencies and tell you what is missing or required. However, you have to dive into commandline switches.