Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sajetek-developer/php5.6-ols-ssl

Docker image w\php 5.6.40/7.4 running on Openlitespeed \w SSL enabled
https://github.com/sajetek-developer/php5.6-ols-ssl

centos centos7 docker dockerfile php5 php56

Last synced: 1 day ago
JSON representation

Docker image w\php 5.6.40/7.4 running on Openlitespeed \w SSL enabled

Awesome Lists containing this project

README

        

[Docker image](https://hub.docker.com/r/sajetek/php5.6-ols-ssl) for old applications running php5.6.40 - Can also run applications on php 7.4.33

CentOS 7 with active repository (added from archives)

SSL enabled with selfsigned SSL certificate

Size: ~903MB

How to build:


docker build -t image-name .


Configurable:


EXPOSED PORTS: 80 443 7080

#ENV#

DEFAULT_PHP: 56

DOCUMENT_ROOT: /

Configurable:


Set ENV DEFAULT_PHP to 56 or 74 to switch between lsphp56 or lsphp74

Set ENV DOCUMENT_ROOT to / for regular websites or /public for laravel applications etc. or as needed

How to run:


docker run -d -p 8708:7080 -p 8000:80 -p 8443:443 --name sajetek-php5.6-ols-ssl -e "DOCUMENT_ROOT=/" -e "DEFAULT_PHP=56" docker.io/sajetek/php5.6-ols-ssl

docker run -d -p 8708:7080 -p 8000:80 -p 8443:443 --name sajetek-php5.6-ols-ssl -e "DOCUMENT_ROOT=/" -e "DEFAULT_PHP=56" sajetek/php5.6-ols-ssl -v
/some/host/path:/usr/local/lsws/Example/html

Modify the image if required via ssh for your needs


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

Openlitespeed v1.8.1



  1. mod_rewrite

  2. mod_mime

  3. mod_headers

  4. mod_expires

  5. mod_auth_basic

php5.6.40

- enabled by default

  1. ioncube_loader

  2. opcache

  3. bcmath

  4. bz2

  5. calendar

  6. ctype

  7. curl

  8. dba

  9. dom

  10. enchant

  11. exif

  12. fileinfo

  13. ftp

  14. gd

  15. gettext

  16. gmp

  17. iconv

  18. imap

  19. intl

  20. ldap

  21. mbstring

  22. mcrypt

  23. mysqlnd

  24. mysqlnd_mysql

  25. mysqlnd_mysqli

  26. odbc

  27. pdo

  28. pgsql

  29. phar

  30. posix

  31. pspell

  32. recode

  33. shmop

  34. simplexml

  35. snmp

  36. soap

  37. sockets

  38. sqlite3

  39. sysvmsg

  40. sysvsem

  41. sysvshm

  42. tidy

  43. tokenizer

  44. xml

  45. xmlwriter

  46. xsl

  47. zip

  48. pdo_mysqlnd

  49. pdo_odbc

  50. pdo_pgsql

  51. pdo_sqlite

  52. wddx

  53. xmlreader

  54. xmlrpc

  55. igbinary

  56. redis