Answers.Body: <p>Turns out it was a beginners mistake, thank you to Robin in the comments above for setting me on the right track. All that was required to install was the Yii2 library, once this was done all worked as expected. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-06T13:36:05.257Z
Answers.LastActivityDate: 2018-06-06T13:36:05.257Z
Answers.UserDisplayName: rjdvsk
Body: <p>when following the information for <a href="https://docs.craftcms.com/v3/configuration.html#redis" rel="nofollow noreferrer">enabling Redis in Craft 3</a>, my site just refreshes to a blank screen with a "Internal server error" generic message. Reviewing the server logs reveals:</p>
  
  <pre><code>ReflectionException: Class yii\redis\Cache does not exist in /storage/path/www/staging_html/vendor/yiisoft/yii2/di/Container.php:428
  </code></pre>
  
  <p>Talking with my hosting provider (Arcustech), informs me that Redis is indeed running and php-redis is installed. The details I entered into <code>config\app.php</code> were</p>
  
  <pre><code>return [
  'components' =&gt; [
      'cache' =&gt; [
          'class' =&gt; yii\redis\Cache::class,
          'defaultDuration' =&gt; 86400,
          'redis' =&gt; [
              'hostname' =&gt; 'localhost',
              'port' =&gt; 6379,
              'database' =&gt; 0,
          ],
      ],
    ],
  ];
  </code></pre>
  
  <p>Any light that could be shone onto my predicament would be amazing.
  thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-05T19:18:07.567Z
Comments.Text: Did you install the Yii2 library as well? Because it doesn't seem so
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-05T19:58:54.367Z
Comments.Text: OK beginner comment, so forgive me, but where do I install the Yii2 library, in the main Craft directory?
Comments.UserDisplayName: rjdvsk
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-05T20:10:43.250Z
Comments.Text: Take a look at this https://github.com/yiisoft/yii2-redis/blob/master/README.md. You require "yiisoft/yii2-redis": "~2.0.0". You should not have a main Craft directory in the best case
Comments.UserDisplayName: Robin Schambach
Tags: <cache><php><redis>
Title: Craft 3 Redis configuration error
ThreadText: # Craft 3 Redis configuration error
  
  (Asked by: username_0 on 2018-06-05)
  
  when following the information for [enabling Redis in Craft 3](https://docs.craftcms.com/v3/configuration.html#redis), my site just refreshes to a blank screen with a "Internal server error" generic message. Reviewing the server logs reveals:
  
  ```
  ReflectionException: Class yii\redis\Cache does not exist in /storage/path/www/staging_html/vendor/yiisoft/yii2/di/Container.php:428
  
  ```
  
  Talking with my hosting provider (Arcustech), informs me that Redis is indeed running and php-redis is installed. The details I entered into `config\app.php` were
  
  ```
  return [
  'components' => [
      'cache' => [
          'class' => yii\redis\Cache::class,
          'defaultDuration' => 86400,
          'redis' => [
              'hostname' => 'localhost',
              'port' => 6379,
              'database' => 0,
          ],
      ],
    ],
  ];
  
  ```
  
  Any light that could be shone onto my predicament would be amazing.
  thanks!
  
  **Tags:** cache, php, redis
  
  > **Comments:**
  > **username_1**: Did you install the Yii2 library as well? Because it doesn't seem so  
  > **username_0**: OK beginner comment, so forgive me, but where do I install the Yii2 library, in the main Craft directory?  
  > **username_1**: Take a look at this https://github.com/yiisoft/yii2-redis/blob/master/README.md. You require "yiisoft/yii2-redis": "~2.0.0". You should not have a main Craft directory in the best case  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-06-06. Score: 1
  
  Turns out it was a beginners mistake, thank you to username_1 in the comments above for setting me on the right track. All that was required to install was the Yii2 library, once this was done all worked as expected.
  
  
  ---
  
  