Install a lightweight OpenLiteSpeed container using the Stable version in Debian 11 Linux on arm64.
1.7.19-lsphp83-node20
,1.7.19-lsphp83
,1.7-lsphp83-node20
,1.7-lsphp83
,1-lsphp83-node20
,1-lsphp83
,lsphp83-node20
,lsphp83
1.7.19-lsphp83-node18
,1.7-lsphp83-node18
,1-lsphp83-node18
,lsphp83-node18
1.7.19-lsphp83-node16
,1.7-lsphp83-node16
,1-lsphp83-node16
,lsphp83-node16
1.7.19-lsphp82-node20
,1.7.19-lsphp82
,1.7-lsphp82-node20
,1.7-lsphp82
,1-lsphp82-node20
,1-lsphp82
,lsphp82-node20
,lsphp82
1.7.19-lsphp82-node18
,1.7-lsphp82-node18
,1-lsphp82-node18
,lsphp82-node18
1.7.19-lsphp82-node16
,1.7-lsphp82-node16
,1-lsphp82-node16
,lsphp82-node16
1.7.19-lsphp81-node20
,1.7.19-lsphp81
,1.7-lsphp81-node20
,1.7-lsphp81
,1-lsphp81-node20
,1-lsphp81
,lsphp81-node20
,lsphp81
1.7.19-lsphp81-node18
,1.7-lsphp81-node18
,1-lsphp81-node18
,lsphp81-node18
1.7.19-lsphp81-node16
,1.7-lsphp81-node16
,1-lsphp81-node16
,lsphp81-node16
1.7.19-lsphp80-node20
,1.7.19-lsphp80
,1.7-lsphp80-node20
,1.7-lsphp80
,1-lsphp80-node20
,1-lsphp80
,lsphp80-node20
,lsphp80
1.7.19-lsphp80-node18
,1.7-lsphp80-node18
,1-lsphp80-node18
,lsphp80-node18
1.7.19-lsphp80-node16
,1.7-lsphp80-node16
,1-lsphp80-node16
,lsphp80-node16
1.7.18-lsphp83
,1.7.18-lsphp82
,1.7.18-lsphp81
,1.7.18-lsphp80
1.7.17-lsphp82
,1.7.17-lsphp81
,1.7.17-lsphp80
1.7.16-lsphp82
,1.7.16-lsphp81
,1.7.16-lsphp80
The system will regulary build the OpenLiteSpeed Latest stable version, along with at least two PHP versions, currently only PHP 8.x.
Component | Version |
---|---|
Linux | Debian 11 |
OpenLiteSpeed | Latest stable version |
PHP | Latest stable version |
Download the openlitespeed image, we can use latest for latest version
docker pull ghcr.io/ndigitals/openlitespeed:latest
or specify the OpenLiteSpeed version with lsphp version
docker pull ghcr.io/ndigitals/openlitespeed:1.7-lsphp82
docker run --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it ghcr.io/ndigitals/openlitespeed:latest
You can also run with Detached mode, like so:
docker run -d --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it ghcr.io/ndigitals/openlitespeed:latest
Tip, you can get rid of -p 7080:7080
from the command if you don’t need the web admin access.
The server should start running successfully, and you should be able to log into the container. Add some files you want to display with the following command:
docker exec -it openlitespeed bash
Your default WORKDIR
should be /var/www/vhosts/
, since the default document root path is /var/www/vhosts/localhost/html
. Simply add the following command to index.php
, then we can verify it from the browser with a public server IP address on both HTTP and HTTPS.
echo '<?php phpinfo();' > localhost/html/index.php
Feel free to substitute the "openlitespeed" to the "Container_ID" if you did not define any name for the container.
docker stop openlitespeed
This image includes NodeJS in order to run NodeJS apps. Choose a tag that includes the version of NodeJS needed.
See official documentation for more details on running NodeJS under OpenLiteSpeed. https://openlitespeed.org/kb/running-node-js-apps-with-openlitespeed/
If you still have a question after using OpenLiteSpeed Docker, you have a few options.
- Join the GoLiteSpeed Slack community for real-time discussion
- Post to the OpenLiteSpeed Forums for community support
- Reporting any issue on Github ols-dockerfiles project
Pull requests are always welcome