title: Trying to add extension=mongodb.so in php --ini files
body: <p>Installing mongodb with pecl for php.</p>
  
  <p>Running this command : echo "extension=mongodb.so" >> <code>php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"</code></p>
  
  <p>and its throwing permission denied exception like this :- 
  bash: <code>php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"</code>: Permission denied</p>
  
  <p>already tried chmod but no luck yet</p>