Openlitespeed with ssl ready, php 5.6.40 | 7.0.33 | 7.1.33 | 7.2.34 | 7.3.33, CentOS 7, Active repo, size ~983MB
Docker image for old applications running php5.6 to php7.3
CentOS 7 with active repository (added from archives)
SSL enabled with selfsigned SSL certificate
Size: ~983MB
EXPOSED PORTS: 80 443 7080
DEFAULT_PHP: 56
DOCUMENT_ROOT: /
Set ENV DEFAULT_PHP to 56, 70, 71, 72, 73 to switch between lsphp versions
Set ENV DOCUMENT_ROOT to / for regular websites or /public for laravel applications etc. or as needed
docker run -d -p 8708:7080 -p 8000:80 -p 8443:443 --name sajetek-php56-70-71-72-73-ols-ssl-centos7 -e "DOCUMENT_ROOT=/" -e "DEFAULT_PHP=56" docker.io/sajetek/php56-70-71-72-73-ols-ssl-centos7
docker run -d -p 8708:7080 -p 8000:80 -p 8443:443 --name sajetek-php56-70-71-72-73-ols-ssl-centos7 -e "DOCUMENT_ROOT=/" -e "DEFAULT_PHP=56" docker.io/sajetek/php56-70-71-72-73-ols-ssl-centos7 -v
/some/host/path:/usr/local/lsws/Example/html
user: admin
pass: 123456
e.g. removing or adding modules, compiling another php etc.
image="docker.io/sajetek/php5.6-ols-ssl"
docker pull $image
container_id=$(docker run -d -it --name temp $image)
docker exec -it temp /bin/bash
#You are now chrooted into the image. type exit when finished
#Install more php versions or do what you need... add or remove modules etc.
#Type exit when finished
docker commit $container_id $image
docker stop $container_id
docker rm $container_id
- mod_rewrite
- mod_mime
- mod_headers
- mod_expires
- mod_auth_basic
- 5.6.40
- 7.0.33
- 7.1.33
- 7.2.34
- 7.3.33