Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions openlitespeed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ RUN groupmod -g 999 lsadm
RUN mkdir -p /var/www/html/public /var/www/html/logs \
&& chown -R www-data:www-data /var/www/html /usr/local/lsws

# Create the default PHP session directory (lsphp's session.save_path)
RUN mkdir -p /var/lib/php/sessions \
&& chown www-data:www-data /var/lib/php/sessions \
&& chmod 0700 /var/lib/php/sessions

RUN echo "# Custom configurations" >> /usr/local/lsws/${LSPHP}/etc/php/${PHP_VERSION}/litespeed/php.ini && \
echo "include_dir /usr/local/etc/php/custom-conf.d" >> /usr/local/lsws/${LSPHP}/etc/php/${PHP_VERSION}/litespeed/php.ini

Expand Down
1 change: 1 addition & 0 deletions openlitespeed/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ usermod -u $PUID www-data

# Ensure correct permissions
chown -R www-data:www-data /var/www/html
chown www-data:www-data /var/lib/php/sessions
chown -R lsadm:lsadm /usr/local/lsws

# Start OpenLiteSpeed
Expand Down
Loading