title: CAssetManager.basePath "/assets" is invalid. Please make sure the directory exists and is writable by the Web server process.?
body: <p>When I run my YII Project on server , I got this error.</p>
  
  <pre><code>CException
  
  CAssetManager.basePath "/var/www/html/v2/assets" is invalid. Please make sure the   directory exists and is writable by the Web server process.
  
  /var/www/html/v2/yii/framework/web/CAssetManager.php(116)
  
  104     }
  105 
  106     /**
  107      * Sets the root directory storing published asset files.
  108      * @param string $value the root directory storing published asset files
  109      * @throws CException if the base path is invalid
  110      */
  111     public function setBasePath($value)
  112     {
  113         if(($basePath=realpath($value))!==false &amp;&amp; is_dir($basePath) &amp;&amp;   is_writable($basePath))
  114             $this-&gt;_basePath=$basePath;
  115         else
  116             throw new CException(Yii::t('yii','CAssetManager.basePath "{path}" is  invalid. Please make sure the directory exists and is writable by the Web server process.',
  117                 array('{path}'=&gt;$value)));
  118     }
  119 
  120     /**
  121      * @return string the base url that the published asset files can be accessed.
  122      * Note, the ending slashes are stripped off. Defaults to '/AppBaseUrl/assets'.
  123      */
  124     public function getBaseUrl()
  125     {
  126         if($this-&gt;_baseUrl===null)
  127         {
  128             $request=Yii::app()-&gt;getRequest();
  </code></pre>
  
  <p>I do Not know ,how to resolve it?Please Explain solution of it?</p>
  
  <p>This is my Project Structure </p>
  
  <pre><code>assets
  protected &lt;-- Yii app
  js
  css
  yii
  </code></pre>