title: Class MongoDate not found - Php 5.4
body: <p>I have added <code>mongodb.so</code> in both <code>/etc/php5/apache2/php.ini</code> and <code>/etc/php5/cli/php.ini</code> as shown below</p>
  
  <pre><code>extension=/usr/lib/php5/20100525/mongodb.so
  </code></pre>
  
  <p>But still I am getting the below error <code>Class 'MongoDate' not found</code>.</p>
  
  <p>Php Version - Php 5.4.45</p>
  
  <p>Below is the information about mongodb extension from php cli</p>
  
  <pre><code>php -i | grep -i mongodb
  mongodb
  MongoDB support =&gt; enabled
  MongoDB extension version =&gt; 1.2.5
  MongoDB extension stability =&gt; stable
  mongodb.debug =&gt; no value =&gt; no value
  </code></pre>
  
  <p>Below is the output of <code>phpinfo()</code> for php running under apache2</p>
  
  <p><a href="https://i.stack.imgur.com/ThQPm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ThQPm.png" alt="enter image description here"></a>
  Can someone let me know how can I get rid of this error?</p>