# Connection to MS SQL server on PHP 7

**URL:** https://forums.suse.com/t/connection-to-ms-sql-server-on-php-7/32203
**Category:** SLES Configure-Administer
**Created:** [March 27, 2018, 12:32pm UTC](https://forums.suse.com/t/connection-to-ms-sql-server-on-php-7/32203 "2018-03-27T12:32:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![K\_Jan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/k_jan/32/10773_2.png) [@K\_Jan](https://forums.suse.com/u/K_Jan)
#### Post date: [March 27, 2018, 12:32pm UTC](https://forums.suse.com/t/connection-to-ms-sql-server-on-php-7/32203/1 "2018-03-27T12:32:28Z")

</div>

Hello,

We are attempting to setup a connection to MS SQL server using PHP 7.0 but noting works. In previous version of PHP like 5 or 5.6 support exists [link](https://software.opensuse.org/search?utf8=%E2%9C%93&q=mssql&search_devel=false&search_unsupported=false&baseproject=openSUSE%3ALeap%3A42.3) but for 7 not.

We tried follow step by step this manual [link](https://github.com/Microsoft/msphpsql/tree/636fac36910b2138f9750427843fe05752acf210), but also without success ☹

Plese, help us solve this issue.

Thanks.

---

<div class="post-metadata">

### Author: ![K\_Jan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/k_jan/32/10773_2.png) [@K\_Jan](https://forums.suse.com/u/K_Jan)
#### Post date: [March 28, 2018, 1:08pm UTC](https://forums.suse.com/t/connection-to-ms-sql-server-on-php-7/32203/2 "2018-03-28T13:08:42Z")

</div>

[SIZE=5]problem solved[/SIZE] 🆒

missing this two required lib and dependencies

zypper in gcc  
zypper in gcc-c++

after install this lib going to install to

pecl install sqlsrv  
pecl install pdo\_sqlsrv

Everithing is OK and work 😉

---

<div class="post-metadata">

### Author: ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)
#### Post date: [March 29, 2018, 8:19pm UTC](https://forums.suse.com/t/connection-to-ms-sql-server-on-php-7/32203/3 "2018-03-29T20:19:50Z")

</div>

Thank-you for sharing your results, as they will likely help others.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the  
forum as I do not use the web interface often.
