Internal server error in Yii2

Hello,

I am trying to add a device on my web portal but I am getting an Internal error. Further check in apache error log gave the response below.

[Thu Jul 28 14:27:58.706063 2016] [:error] [pid 11625] [client IP:40155] PHP Warning: chmod(): No such file or directory in /var/www/html/apidomain.com/vendor/yiisoft/yii2/helpers/BaseFileHelper.php on line 463

[Thu Jul 28 16:04:35.756226 2016] [:error] [pid 13674] [client IP:43069] PHP Warning: mkdir(): Permission denied in /var/www/html/apidomain.com/vendor/yiisoft/yii2/helpers/BaseFileHelper.php on line 462, referer: https://webdomain/app_super_admin.html

[Thu Jul 28 16:04:35.756263 2016] [:error] [pid 13674] [client IP:43069] PHP Warning: chmod(): No such file or directory in /var/www/html/apidomain.com/vendor/yiisoft/yii2/helpers/BaseFileHelper.php on line 463, referer: https://webdomain.com/app_super_admin.html

Please what am I doing wrong?

It looks like it tries to create new folder but doesn’t have permission to do it. Check owner and group that parent folder belongs to and its write/read settings.