This image provides an integrated development environment for PHP with connectivity to a remote SQL Server database.
The following components are included:
-
Centos 7 OS layer.
-
PHP-FPM latest
-
Pre-configured PHP 7.3 runtime environment.
-
sqlsrv and pdo_sqlsrv for SQL Server.
-
SQL Server command-line utilities (sqlcmd and bcp).
-
Installed PHP modules (php-fpm, php-cli, php-gd, php-intl, php-json, php-ldap, php-mbstring, php-mcrypt, php-opcache, php-pdo, php-pecl-zip, php-soap, php-sqlsrv, php-xml, php-mysqlnd, php-pecl-uuid, php-bcmath, mediainfo, openldap-clients, php-mhash, php-xsl, php-pear, php-soap)
-
[Microsoft ODBC Driver 17.3 for Linux] (https://blogs.msdn.microsoft.com/sqlnativeclient/2019/02/22/odbc-driver-17-3-for-sql-server-released/)
-
[Microsoft Drivers for PHP for SQL Server 5.6] (https://docs.microsoft.com/en-us/sql/connect/php/release-notes-for-the-php-sql-driver?view=sql-server-2017)
CFG_INCLUDE environment varible for conf file. Default value is "/etc/opt/remi/php72/php-fpm.d/*.conf"
exmple config file: www.conf
docker run -v c:\demo:/shared -p 9000:9000 -e CFG_INCLUDE=/shared/etc/php/*.conf netyazilim/php-mssql