Skip to main content

PHP pdo_dblib extension fails to make and make install

Comments

5 comments

  • deehslash
    That compilation problem was slowing the whole project down so I did something easier. Remi PHP repository has the pdo_dblib extension already compiled for various PHP versions, so in another server (to not interfere with EasyApache PHP packages) I've downloaded PHP 7.3.25 (had to specify the version as in Remi repository it is already in 7.3.26) and pdo_dblib extension. Then I moved the .so file to the cPanel server, enabled it in the .ini, restarted PHP-FPM, and voil", pdo_dblib was successfully loaded and working as expected. In any case, if someone knows what is happening with the compilation process, please post it here so that it may help others with the same problem.
    0
  • cPRex Jurassic Moderator
    Hey there! I followed these same steps on my end and when I got to this point: ./configure --with-pdo-dblib=/usr/local/freetds --with-php-config=/opt/cpanel/ea-php73/root/usr/bin/php-config
    I received the following error: configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory
    Can you check your output from that command and see if you also received that message?
    0
  • deehslash
    Hey there! I followed these same steps on my end and when I got to this point: ./configure --with-pdo-dblib=/usr/local/freetds --with-php-config=/opt/cpanel/ea-php73/root/usr/bin/php-config
    I received the following error: configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory
    Can you check your output from that command and see if you also received that message?

    I didn't receive that message. I did not install FreeTDS through ea-freetds
    package, but I manually downloaded its source and compiled it, installing it to the /usr/local/freetds
    directory. PS: Use --prefix
    option when configuring FreeTDS to specify the installation directory. Example: ./configure --prefix=/usr/local/freetds
    0
  • deehslash
    I can confirm that those errors do not happen with Remi PHP packages, but only with cPanel (EasyApache 4).
    0
  • cPRex Jurassic Moderator
    Ah - that would be the difference then, as the cPanel install of FreeTDS doesn't use that directory path by default. Since these are third-party packages I'm hesitant to say this is an issue with cPanel, as not every external package will work with EasyApache. I think the best thing to do in this case would be to submit a feature request using the link in my signature below to get that functionality added directly to the product.
    0

Please sign in to leave a comment.