title: The "SCRAM-SHA-1" authentication mechanism requires libmongoc built with --enable-ssl
body: <p>Getting error message while connecting to database using Laravel 5.4 and Mongodb 3.6</p>
  
  <p><code>The "SCRAM-SHA-1" authentication mechanism requires libmongoc built with --enable-ssl</code></p>
  
  <p>Its running fine in ubuntu 16.04 with same versions, but not in AWS Linux.</p>
  
  <p>Installed LAMP [ php70, apach24 ] :</p>
  
  <ul>
  <li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html" rel="noreferrer">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html</a></li>
  </ul>
  
  <p>Installed Mongodb [ 3.6 ] :</p>
  
  <ul>
  <li><a href="https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/" rel="noreferrer">https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/</a></li>
  </ul>
  
  <p>Installed php-mongodb driver for php7:</p>
  
  <pre><code>sudo yum -y install php7-pear php70-devel gcc  // completed
  sudo pecl7 install mongodb                     // completed 
  sudo yum install openssl-devel                 // completed
  </code></pre>
  
  <p>php-mongodb driver installed and updated to php.ini, mongodb shows in phpinfo() as well.</p>
  
  <p>we find there is libmongoc ssl disabled from phpinfo, Is that issue ?</p>
  
  <p><a href="https://i.stack.imgur.com/YqC8S.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YqC8S.png" alt="enter image description here"></a></p>
  
  <p>How can we enable it ?</p>