Categories
OS IT Support

[Fixed] Logs not being output in OpenLiteSpeed

While configuring OpenLiteSpeed, there was an issue where logs were not being output even though the configuration was correct.

  • Environment : Ubuntu 24.04 / OpenLiteSpeed 1.8.2

Changed the user and group to www-data, set up several virtual hosts, and configured the virtual host logs to be output under “/usr/local/lsws/logs” with separate filenames. However, although the log files were created, no logs were written to them.

In conclusion, changing the owner/group of “/usr/local/lsws/logs” to the execution user www-data made it work.

chown -R www-data:www-data /usr/local/lsws/logs

Since the log files were being created and logs were being output to “/usr/local/lsws/logs/access.log” which was not configured, I did not think it was a permissions issue, and it took some time to resolve.