Sign inSign up

hamurabiaraujo/php-mssql

By hamurabiaraujo

•Updated over 1 year ago

Apache2 + PHP 7.4 + composer + MS SQL PDO Driver

Image
Languages & frameworks
Developer tools
Web servers
2

1.6K

hamurabiaraujo/php-mssql repository overview

⁠php-mssql

A lightweight Docker image tailored for running PHP applications with Microsoft SQL Server support.

This image is based on the official PHP 7.4 image⁠ and comes pre-configured with Apache (with mod_rewrite enabled) and Composer, making it ideal for rapid PHP development with SQL Server as the backend.

⁠✅ Features

  • Apache with mod_rewrite enabled
  • Composer pre-installed
  • Support for Microsoft SQL Server (via msodbcsql17)
  • Includes commonly used development tools and libraries

⁠🧰 Installed Packages

  • wget
  • vim
  • curl
  • poppler-utils
  • unixodbc-dev
  • git
  • zip, unzip
  • libfreetype6-dev
  • libjpeg62-turbo-dev
  • libpng-dev
  • msodbcsql17
  • composer

⁠🚀 Usage Example (docker-compose)

Here is a sample docker-compose.yml file to get started:

version: "3.9"
services:
  web:
    image: hamurabiaraujo/php-mssql
    ports: 
      - "80:80"
    volumes:
      - ./projects/:/var/www/html/

⁠Running v1.0.0 (deprecated)

docker run --name servername -d -p 8080:80 --restart=always -v /var/www/html/:/var/www/html/ hamurabiaraujo/php-mssql /usr/sbin/apachectl -D FOREGROUND

--name : local container name -d : deattach -p : port mapping [:] -v : folder mapping [:] --restart=always : automatically restart container /usr/sbin/apachectl -D FOREGROUND : starting apache on container start up

⁠Installed dependencies

  • pecl
  • wget
  • nano
  • vim
  • curl
  • poppler-utils
  • mssql-tools
  • composer (alias to php /bin/composer.phar)
  • zip
  • unzip
  • git

Tag summary

Content type

Image

Digest

sha256:1079c4207…

Size

202.3 MB

Last updated

over 1 year ago

docker pull hamurabiaraujo/php-mssql