<p>RitterKnights solution worked! I hadnt restarted php5-fpm.</p>

CC BY-SA 3.0
2016-06-02T23:16:13.813Z
2016-06-02T23:16:13.813Z
CareFree
<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>

CC BY-SA 3.0
2016-06-02T21:40:24.547Z
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.
RitterKnight
CC BY-SA 3.0
2016-06-02T23:14:44.430Z
Yes, ubuntu 14. Wow, I feel foolish now, restart of php5-fpm fixed it! thanks
CareFree
<mcrypt>
Craft CMS on LEMP Stack (mcrypt not detected)
# 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;

I do have php5-mcrypt installed and it appears in phpinfo()

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.


---

