Focus on cloud service provider activities
Notes on website operation and maintenance

Set LiteSpeed log option to enable website access log file

When we use a virtual host, we can see the website log file in the cPanel panel. The website log file can analyze the website access data information, and then we can make countermeasures. However, if we use VPS, many people, like Lao Zuo, are afraid that the log file will occupy most of the VPS space over time, so they will not enable the log function when adding sites. However, if we need to use it later, we can enable it again. Today we just need to use the startup log because we built it with the LLsMP one click installation package( Extended reading: Debian Installation LLsMP Environment Tutorial ), so you can use LiteSpeed to open the log.

Step 1: Log in to the LiteSpeed background


After logging in to the LiteSpeed background, enter the site settings option in Configuration Virtual Hosts, find the site you need to set, and then edit the settings in the "View/Edit".

Step 2: Select the Log option to edit the Access Log


Step 3: Set the log path


Set "$SERVER_ROOT/logs/access. log" in File Name, and then save it.

Finally, restart LiteSpeed


In conclusion, if we use the LLSMP installation package, we can see the access. log file we set in/usr/local/lsws/logs/. There are not many articles about Litespeed“ Litespeed enables the htaccess pseudo static method "There are also friends who need to solve such problems.

Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Set LiteSpeed log option to enable website access log file

Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge