I don't have sqlserver so didn't test it fully. But to install the sqlsrv extension do the following:
Install the php-devel as well as the unixodbc-devel package.
After that you can clone https://github.com/microsoft/msphpsql/
Go into the source subfolder of msphpsql. There copy the shared folder to the sqlsrv folder as well as to the pdo_sqlsrv folder.
In both sqlsrv as well as pdo_sqlsrv directories run the following commands:
- phpize
- ./configure
- make
- sudo make install
After that the files sqlsrv.so as well as pdo_sqlsrv.so will be in the /usr/lib64/php/modules/ folder.
Then extend your php.ini file with:
extension=sqlsrv
extension=pdo_sqlsrv
As a side note. Everytime PHP will be updated in Solus, these two .so files will be removed. Maybe you can place them somewhere else or just run sudo make install again after a PHP update.