If I want to use Ruby or Python or any other OOP language other than PHP while still running a WAMP/LAMP/MAMP stack so I can still use Windows/MySQL/Apache is that a good idea? Are there better stacks I should look into? And if this is ok to do, why isn't it called a WAM[choose-your-adventure] instead of a WAMP...?
P does not stands for the PHP only (saying about all of them), it could also mean Python if you wish.
And all this is just words, till the moment you understand advantages and prospects of each.
So, the right question is what should you consider also.
I think you'd like LEMP (E stands for the Ngnix, for many projects it'd be better than Apache; yet, is totally disputable)
Also, it's quite popular nowadays to use Node.js as a server (MEAN software bundle). Yet, it is totally different from what you are looking at, - whole bundle is either javascript, or js-based frameworks, as you can understand from the name of it.
https://en.wikipedia.org/wiki/MEAN_(software_bundle)
It is quite a big subject to dig in, - surf for it on the net. Main idea - you'd better understand deeply what lays beyond each bundle, so you can get, if it fits to your project, or not.