Public Repository

Last pushed: 3 months ago
Short Description
Open LiteSpeed Web Server
Full Description

Dockerfile

FROM ubuntu:16.04

LABEL com.version.release = "1.4.26"

EXPOSE 7080 8088

RUN apt-get update \
&& apt-get install -y wget \
&& wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debain_repo.sh | bash \
&& apt-get install -y \
openlitespeed \
lsphp56 \
lsphp56-curl \
lsphp56-enchant \
lsphp56-gd \
lsphp56-gmp \
lsphp56-imap \
lsphp56-intl \
lsphp56-ldap \
lsphp56-mcrypt \
lsphp56-mysql \
lsphp56-odbc \
lsphp56-pgsql \
lsphp56-pspell \
lsphp56-recode \
lsphp56-snmp \
lsphp56-sqlite \
lsphp56-tidy \
lsphp56-xmlrpc \
lsphp56-xsl \
lsphp70 \
lsphp70-common \
lsphp70-curl \
lsphp70-imap \
lsphp70-intl \
lsphp70-json \
lsphp70-ldap \
lsphp70-mysql \
lsphp70-opcache \
lsphp70-pgsql \
lsphp70-pspell \
lsphp70-recode \
lsphp70-snmp \
lsphp70-sqlite3 \
lsphp70-sybase \
lsphp70-tidy \
lsphp71 \
lsphp71-common \
lsphp71-curl \
lsphp71-imap \
lsphp71-intl \
lsphp71-json \
lsphp71-ldap \
lsphp71-mysql \
lsphp71-opcache \
lsphp71-pgsql \
lsphp71-pspell \
lsphp71-recode \
lsphp71-snmp \
lsphp71-sqlite3 \
lsphp71-sybase \
lsphp71-tidy \
&& ln -sf /usr/local/lsws/lsphp56/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp56 \
&& ln -sf /usr/local/lsws/lsphp70/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp70 \
&& ln -sf /usr/local/lsws/lsphp71/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp71

COPY htpasswd /usr/local/lsws/admin/conf/
RUN chown lsadm:lsadm /usr/local/lsws/admin/conf/htpasswd

COPY httpd_config.conf /usr/local/lsws/conf/
RUN chown lsadm:lsadm /usr/local/lsws/conf/httpd_config.conf

COPY entrypoint.sh /
CMD ["/entrypoint.sh"]

httpd_conf.conf - Added the following sections

extProcessor lsphp56{
type lsapi
address uds://tmp/lshttpd/lsphp56.sock
maxConns 35
env PHP_LSAPI_MAX_REQUESTS=500
env PHP_LSAPI_CHILDREN=35
initTimeout 60
retryTimeout 0
persistConn 1
pcKeepAliveTimeout
respBuffer 0
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp56
backlog 100
instances 1
priority 0
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}

extProcessor lsphp70{
type lsapi
address uds://tmp/lshttpd/lsphp70.sock
maxConns 35
env PHP_LSAPI_MAX_REQUESTS=500
env PHP_LSAPI_CHILDREN=35
initTimeout 60
retryTimeout 0
persistConn 1
pcKeepAliveTimeout
respBuffer 0
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp70
backlog 100
instances 1
priority 0
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}

extProcessor lsphp71{
type lsapi
address uds://tmp/lshttpd/lsphp71.sock
maxConns 35
env PHP_LSAPI_MAX_REQUESTS=500
env PHP_LSAPI_CHILDREN=35
initTimeout 60
retryTimeout 0
persistConn 1
pcKeepAliveTimeout
respBuffer 0
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp71
backlog 100
instances 1
priority 0
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}

scriptHandler{
add lsapi:lsphp56 php
add lsapi:lsphp70 php
add lsapi:lsphp71 php
}

htpasswd - set the admin password to 123456

admin:$1$f/bpzLQS$q3ejtPwzx56Wqb9hKnbyj0

Docker Pull Command
Owner
farfui

Comments (0)