Skip to content

Administration: Server and access logs

Abilities

There are two types of server logs.

Access log shows user requests. You can see the number of requests, their frequency, and from which IP addresses your site was accessed. This information can be used to monitor the load, suspicious requests and attempts to crack passwords.

Error log shows application errors, i.e. errors in the PHP code of CS-Cart and Multi-Vendor. It can be used to check the system performance, locate errors in add-ons and development.

Important

Do not mix these logs with the Logs functionality in CS-Cart and Multi-Vendor, which is found under Administration > Logs. It operates on the application level and is not related to the hosting.

The access.log and error.log logs can be found in the project directory on the server, next to the public_html folder.

ls -la /srv/projects/[PROJECT_DIR]/logs

Reading logs

Via file manager

Connect via file manager
  1. Connect to the server using your favorite tool How to: Development: Manage files (GUI)

  2. Open the project directory, then open the logs folder. Security_ settings

  3. Open the access.log and error.log files or download them to your computer. Security_ settings

Via terminal

Connect via terminal
  1. Connect to the server using the terminal How to: Development: Manage files (GUI)

  2. In the project directory, open the logs folder
    cd /srv/projects/[PROJECT_DIR]/logs Security_ settings

  3. Use the following command to view and read the log file in real time.
    tail -f error.log

  4. Or view the last n lines in the log file:
    tail error.log -n 10 Security_ settings


Hint

If you have a problem, need assistance with tweaks or a free consultation, if you just want to discuss your project with experts and estimate the outcome, if you're looking for a solution that reinforces your online business, we will help. Let us know through MyCloud or email.

Back to top