Bobcares

How to turn on Extensive Debug logs in OpenLiteSpeed

by | Jun 5, 2023

Learn how to turn on Extensive Debug logs in OpenLiteSpeed. Our Server Management Support team is here to help you with your questions and concerns.

How to turn on Extensive Debug logs in OpenLiteSpeed

If you are looking for a guide to help you enable extensive debug logs in OpenLiteSpeed, you have come to the right place.

How to turn on Extensive Debug logs in OpenLiteSpeedAccording to our experts, we need to ensure we have SSH access to the server where OpenLiteSpeed is installed. This will come in handy when it is time to edit the configuration file.

  1. First, we have to open the OpenLiteSpeed Configuration file, located at /usr/local/lsws/conf/httpd_config.conf.
  2. Then, find the debugLevel directive with the file. It is set to ERROR by default. We have to change its value to DEBUG in order to turn on the Extensive debug logs.

    debugLevel DEBUG

  3. Next, save the configuration file and exit.
  4. At this point, we have to restart OpenLiteSpeed with this command:

    sudo /usr/local/lsws/bin/lswsctrl restart

After OpenLiteSpeed restarts, extensive debug logs will be generated. We can find these logs at  /usr/local/lsws/logs/error.log .

Furthermore, we can monitor the file with a tool to view the debug logs in real time as well.

Our experts would like to point out that extensive debug logs tend to generate a large amount of information which can impact server performance. Hence, disabling it after troubleshooting or debugging is a good idea.

We can easily disable Extensive debug logs by changing the debugLevel value back to ERROR and saving the configuration file.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

To conclude, our Support Techs demonstrated how to enable Extensive Debug logs with just a few easy steps.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.