Deploy error new SC

Any ideas how to get around this error? im trying to deploy my application on ubuntu server using this path /var/www/html/folder, and geting this error, have try to chmod the whole path still problem.

Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /home/klerezco/public_html/scriptcase9/devel/class/page/nmPagePublishWizard.class.php:1043 Stack trace: