Make sure the pagespeed log and cache folders are writable for nginx.