Please note that the Adapter Set name and Adapter name are case sensitive. So I suppose that the "globals style" example doesn't work due to the "mysocket" instead of "MYSOCKET".

Anyway, we usually recommend using the AMD version of JavaScript Client library. The fact that your example does not work in Apache is somewhat strange. What kind of error you have? The page loads but the cells shows "loading ..."? Did you notice any errors or messages in the JavaScript console of your browser?