If you’re running into a near empty screen showing, “An internal server error occurred” in Yii2, check your error logs. It’s a simple fix.

My logs showed:
An Error occurred while handling another error:\nexception 'yii\\base\\InvalidConfigException' with message 'The directory is not writable by the Web process: /var/www/mp/backend/web/assets' in /var/www/mp/vendor/yiisoft/yii2/web/AssetManager.php:213

You can resolve it by opening up permissions on your asset directory:

sudo chmod -vR 0777 assets/

Support this site, share this page:Tweet about this on TwitterShare on RedditShare on LinkedInShare on FacebookEmail this to someone