docker-images-php icon indicating copy to clipboard operation
docker-images-php copied to clipboard

Add environment variable to change Apache ports

Open mms-gianni opened this issue 2 years ago • 1 comments

Expected Behavior

Add optional ENV vars for HTTP and HTTPS port.

Current Behavior

The Ports are by default on 80 and 443.

Possible Solution

Replace default with env values during startup.

Context

Having trouble in a security-sensitive kubernetes environment to bind lower ports

(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

Your Environment

  • Version used: thecodingmachine/php:8.1-v4-apache
  • Operating System and version: Kubernetes
  • Link to your project: https://github.com/kubero-dev/buildpacks/blob/main/packs/php-laravel/Dockerfile

mms-gianni avatar Mar 17 '23 09:03 mms-gianni