In connection Apache+Nginx got not loading css and error in logs that css.php send more data then stated in content-length header. So template is broken. Commenting line header('Content-Lenght...) solves problem, so length($css) doesn't calculate correct lenght of the stream. Tha same problem with admin.php