Your information is extremely limited so it’s not exactly clear what you are trying to do and what’s going wrong. I did however try to get some things working and was able to. I first started (here)[https://developers.google.com/speed/docs/insights/MinifyResources] that is Google’s guide to minifying things.
I picked the PageSpeed Module as it sounded closest to what you indicated. Their guide on that is (here)[https://developers.google.com/speed/pagespeed/module/]
I chose Apache, as it’s more common and installed it with the guide it provides (here)[https://developers.google.com/speed/pagespeed/module/download]
After installing and following the full guide it was setup and installed (I already had apache installed).
Following the rest of the guides there, I was able to get it up and running, so if you can provide more information on what exactly isn’t working, perhaps more information could be provided. It’s vital when asking for help to provide as much information as you can.
This allows supporters to replicate and try to provide a solution.