Using PHP's LDAP support, I had been curious if you want to be running under IIS to be able to query the neighborhood Active Directory. Can you have the ability to query it when the server is running Apache rather?
Also, could I query an energetic Directory setup on another machine compared to code is running on, or must it be achieved on that machine?
No, as pointed out within the documentation here, they will use openLDAP, making no utilization of home windows libraries/need IIS by any means. Also within the requirements page, they merely say you'll need the libraries, without any specs of the certain server/os.
Besides, you are able to query other machines, this is the concept behind active directory.
You can query additionally a remove active directory server. I personally use standard LAMPP Server to question an online Advertisements.