LiteSpeed technical details
LiteSpeed logging
LiteSpeed logs are stored in the /usr/local/lsws/logs/ directory and contain the following data:
error.log— web server error log for the entire time of its operationerror.log.<YYYY_MM_DD>— web server error log for the current daylsrestart.log— web server restarts log for the entire time of its operationstderr.log— log of sent error messages about web server operationaccess.log— log of successful web server commands
LiteSpeed web server configuration files
/usr/local/lsws/conf/httpd_config.xml— LiteSpeed configuration file./usr/local/mgr5/etc/ispmgr.conf.d/litespeed.conf— LiteSpeed handler configuration file.
Configuration files with PHP settings for the user:
- for Debian-based operating systems:
/etc/apache2/users-php/USER.conf - for RHEL-based operating systems:
/etc/httpd/users-php/USER.conf
Configuration files with PHP settings for the website:
- for Debian-based operating systems:
/etc/apache2/vhosts-php/SITE.conf - for RHEL-based operating systems:
/etc/httpd/vhosts-php/SITE.conf
After editing, site configuration files are automatically checked by Apache with the following commands:
for Debian-based operating systems:
/usr/sbin/apachectl -tfor RHEL-based operating systems:
/usr/sbin/httpd -t The directives of the website configuration files that are designed only for LiteSpeed are enclosed in the <IfModule LiteSpeed> tag, the ones designed only for Apache — in the <IfModule !LiteSpeed> tag. If needed, comment the LiteSpeed directives out to stop LiteSpeed and start Apache.
Example
#<IfModule LiteSpeed>
#<IfModule lsapi_module>
#ScriptAlias /php-bin/ /var/www/php-bin-isp-php83/www-root/example.com/
#AddHandler application/x-httpd-php83 .php .php3 .php4 .php5 .phtml
#Action application/x-httpd-php83 /php-bin/php
#</IfModule>
#</IfModule>