title: getting Error "undefined function mcrypt_create_iv()" in php 7.2 In Codeigniter
body: <p>I am getting below error </p>
  
  <blockquote>
    <p>ERROR - 2018-10-01 12:05:23 --> Severity: error --> Exception: Call to undefined function mcrypt_create_iv() /var/www/html/application/controllers/api.php 331</p>
  </blockquote>
  
  <p>deploying app on AWS EC2 ubuntu 16( Php 7.2, Nginx, codeigniter 3.1.9)</p>