Export not working

I got server setup with clean apache, php and mysql. Export is not working in any placation. CSV gets generated but turns out empty and PDF is not generated at all. It looks like some dependency is needed for this feature.
Anyone know what it is?

I had similar problem with PDF, the wkhtmlpdf that came in the deployment zip is not working for me. I had to download a copy from wkhtmlpdf website and replaced the file. I think it has something to do with https protocol.