title: PHP Core extensions directory in linux are not loaded via PHP cli
body: <p>I have compiled php myself. With a set of config opetions to have the important extensions.</p>
  
  <p>When I check the php-info with http (browser), I see all extensions are loaded.</p>
  
  <p>But, when I check the <code>phpinfo</code> with php on the cli, the extensions are not listed. I even cannot find <code>.so</code> files of extensions in any directory. For instance, <code>dom.so</code> is not found anywhere (in no possible directory such as <code>/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012</code> )</p>
  
  <p>Php cli points to a directory of extensions .ini files. In there, I do no see many extensions which are loaded via apache.</p>
  
  <p>Update:</p>
  
  <p>I have <code>./configure</code> and <code>make install</code> dom extension myself from within the raw files in <code>extensions/dom</code> dir of php. I then have added manually a <code>.ini</code> file to php cli. The php cli loads the extensions, but throws an error the it is not a  valid library.</p>