title: "Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10
body: <p>I have overlook at this issue <a href="https://stackoverflow.com/questions/34377338/linux-php-7-0-and-mssql-microsoft-sql">Linux - PHP 7.0 and MSSQL (Microsoft SQL)</a></p>
  
  <p>and I am sure did exactly what MS told me to do in this page
  <a href="https://docs.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-2017#installing-the-drivers-on-red-hat-7" rel="nofollow noreferrer">installing-the-drivers-on-red-hat-7</a>
  howevey, i stiil got the error when type 'php -v':</p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library
    'pdo_sqlsrv.so' (tried: /usr/lib64/php/modules/pdo_sqlsrv.so
    (/usr/lib64/php/modules/pdo_sqlsrv.so: undefined symbol:
    php_pdo_register_driver), /usr/lib64/php/modules/pdo_sqlsrv.so.so
    (/usr/lib64/php/modules/pdo_sqlsrv.so.so: cannot open shared object
    file: No such file or directory)) in Unknown on line 0 </p>
    
    <p>PHP 7.2.10
    (cli) (built: Sep 15 2018 07:10:58) ( NTS ) Copyright (c) 1997-2018
    The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend
    Technologies
        with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend 
    Technologies</p>
  </blockquote>
  
  <p>I never modify the php.ini,</p>
  
  <blockquote>
    <p>[user@tssvr php.d]$ pwd</p>
    
    <p>/etc/php.d</p>
    
    <p>[user@tssvr php.d]$ ls </p>
    
    <p>20-sqlsrv.ini      ctype.ini  fileinfo.ini  gmp.ini    mbstring.ini               pdo.ini         shmop.ini      tokenizer.ini  xmlwriter.ini
    30-pdo_sqlsrv.ini  curl.ini   ftp.ini       iconv.ini  mysqli.ini                 pdo_mysql.ini   simplexml.ini  xml.ini        xsl.ini
    bz2.ini            dom.ini    gd.ini        intl.ini   opcache-default.blacklist  pdo_sqlite.ini  sockets.ini    xmlreader.ini  zip.ini
    calendar.ini       exif.ini   gettext.ini   json.ini   opcache.ini                phar.ini        sqlite3.ini    xml_wddx.ini</p>
    
    <p>[user@tssvr php.d]$ cat 20-sqlsrv.ini </p>
    
    <p>extension=sqlsrv.so</p>
    
    <p>[user@tssvr php.d]$ cat 30-pdo_sqlsrv.ini</p>
    
    <p>extension=pdo_sqlsrv.so</p>
  </blockquote>
  
  <p>it seems that the sqlsrv.so is good, but the pho_sqlsrv.so just can't work correctly,,although i notice that double 'so' appear: 'pdo_sqlsrv.so.so' ,
  can any guys can help me through this ,many thanks.</p>