MSSQL support

dorcohen1

New member
Joined
Aug 31, 2022
Messages
3
Hey there.
I'm trying to install custom php extensions such as:
mssql (pure as is, for php 5.4)
pdo dblib
pdo odbc
and ODBC

i've created a custom configure.php54 file and added:
--with-freetds-bin \
--with-freetds-dev \
--with-freetds-common \
--with-mssql \
--with-odbc \
--with-pdo-odbc \
--with-pdo-dblib \

but i'm receiving this error while trying to build it:
"
checking for MSSQL support via FreeTDS... yes
configure: error: Cannot find FreeTDS in known installation directories

*** There was an error while trying to configure php. Check the configure file"

kinda new to directadmin, any help? thanks guys.
 
extensions for PHP just allows your code to work with system modules, so you must first install this modules to your system, than when you will compile php-entensions - they will check system for this modules and configure itself to work with them.
--
so you can google "install pdo dblib php 5 centos 7" (or what your OS) and follow instructions, some modules installed via packages, some must be compilled.
 
extensions for PHP just allows your code to work with system modules, so you must first install this modules to your system, than when you will compile php-entensions - they will check system for this modules and configure itself to work with them.
--
so you can google "install pdo dblib php 5 centos 7" (or what your OS) and follow instructions, some modules installed via packages, some must be compilled.
Hey, thanks for the reply.
i've tried several ways such as install php-mssql, pdo-odbc
but i'm getting the same error at all the options.
"no package php-mssql (or odbc, whatever i tried) is available. Error: nothing to do."
1662403387705.png
 
because all php* forbidden in YUM by DA because DA all PHP related compiles from sources.
You can use part ot this manuals, but on your own risk:
 
Back
Top