Is there a way to know what Apache version, PHP version, and PHP libraries, etc. are available to a website without being given access to the server. I'm looking for something like phpinfo, but as said without access.

If not possible, what is the next best thing? I heard that headers can be used, but not sure how.

Thanks