title: Yii2 - Exception (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'The directory is not writable by the Web process
body: <p>When I access the site at domain.com/web, I'm displayed this error. I changed the directory permissions and they are listed below. Any solution?</p>
  
  <pre><code>PHP User Error – yii\base\ErrorException
  
  Exception (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'The directory is not writable by the Web process: /var/www/.../site1/web/assets' 
  
  in /var/www/.../site1/vendor/yiisoft/yii2/web/AssetManager.php:168
  </code></pre>
  
  <p>Permissions:-</p>
  
  <pre><code>root@...:/var/www/.../site1# ls -l web
  total 48
  drwxrwxr-x 9 root root 4096 Mar 20 15:56 assets
  drwxr-xr-x 2 root root 4096 Mar 20 15:50 css
  
  root@...:/var/www/.../site1/assets# ls -l
  total 8
  -rw-r--r-- 1 root root 958 Mar 20 17:24 AppAsset.php
  -rw-r--r-- 1 root root 628 Mar 20 17:24 error_log
  </code></pre>
  
  <p>Even after running this command:-</p>
  
  <p><code>chmod -R 777 .</code></p>
  
  <pre><code>total 8
  -rwxrwxrwx 1 root root 958 Mar 20 17:24 AppAsset.php
  -rwxrwxrwx 1 root root 628 Mar 20 17:24 error_log
  </code></pre>
  
  <p>I'm still getting same error.</p>