Answers.Body: <p>RitterKnights solution worked! I hadnt restarted php5-fpm.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-02T23:16:13.813Z
Answers.LastActivityDate: 2016-06-02T23:16:13.813Z
Answers.UserDisplayName: CareFree
Body: <p>I have a LEMP droplet on digitalocean that I am trying to get working with Craft CMS. 
  Strangely it does not seem to play nice with NGINX. Or maybe it's just me.</p>
  
  <p>After installation I am receiving the below message;
  <a href="https://i.sstatic.net/RCgsD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RCgsD.png" alt="Screenshot"></a></p>
  
  <p>I do have php5-mcrypt installed and it appears in phpinfo()</p>
  
  <p><a href="https://i.sstatic.net/9KuuT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9KuuT.png" alt="phpinfo() screenshot"></a></p>
  
  <p>Can anyone help? Thanks.</p>
  
  <p>-- NGINX config for craft (craft.conf)</p>
  
  <pre><code>server {
    listen   80;
  
    root /var/www/public;
    index index.php index.html index.htm;
  
    server_name ger1-riverrun.mydomain.com;
  
    location / {
      try_files $uri $uri/ @rewrites;
    }
  
    location @rewrites {
      rewrite ^(.*) /index.php?p=$1 last;
    }
  
    location ~ \.php$ {
      try_files $uri =404;
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      include fastcgi_params;
    }
  
    error_page 404 /index.php;
  
  }
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-02T21:40:24.547Z
Comments.Text: Are you on Ubuntu? [This](https://www.digitalocean.com/community/questions/enable-mcrypt-extension-in-nginx) might be useful? Any config change always do a ``service nginx restart && php5-fpm restart`` to make sure everything gets reloaded.
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-02T23:14:44.430Z
Comments.Text: Yes, ubuntu 14. Wow, I feel foolish now, restart of php5-fpm fixed it! thanks
Comments.UserDisplayName: CareFree
Tags: <mcrypt>
Title: Craft CMS on LEMP Stack (mcrypt not detected)
ThreadText: # Craft CMS on LEMP Stack (mcrypt not detected)
  
  (Asked by: username_0 on 2016-06-02)
  
  I have a LEMP droplet on digitalocean that I am trying to get working with Craft CMS.
  Strangely it does not seem to play nice with NGINX. Or maybe it's just me.
  
  After installation I am receiving the below message;
  [![Screenshot](https://i.sstatic.net/RCgsD.png)](https://i.sstatic.net/RCgsD.png)
  
  I do have php5-mcrypt installed and it appears in phpinfo()
  
  [![phpinfo() screenshot](https://i.sstatic.net/9KuuT.png)](https://i.sstatic.net/9KuuT.png)
  
  Can anyone help? Thanks.
  
  -- NGINX config for craft (craft.conf)
  
  ```
  server {
    listen   80;
  
    root /var/www/public;
    index index.php index.html index.htm;
  
    server_name ger1-riverrun.mydomain.com;
  
    location / {
      try_files $uri $uri/ @rewrites;
    }
  
    location @rewrites {
      rewrite ^(.*) /index.php?p=$1 last;
    }
  
    location ~ \.php$ {
      try_files $uri =404;
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      include fastcgi_params;
    }
  
    error_page 404 /index.php;
  
  }
  
  ```
  
  **Tags:** mcrypt
  
  > **Comments:**
  > **username_1**: Are you on Ubuntu? [This](https://www.digitalocean.com/community/questions/enable-mcrypt-extension-in-nginx) might be useful? Any config change always do a ``service nginx restart && php5-fpm restart`` to make sure everything gets reloaded.  
  > **username_0**: Yes, ubuntu 14. Wow, I feel foolish now, restart of php5-fpm fixed it! thanks  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-06-02. Score: 1
  
  RitterKnights solution worked! I hadnt restarted php5-fpm.
  
  
  ---
  
  