Precise Future

AWS Lightsail WordPress logs

To access the logs for your WordPress site on AWS Lightsail, you can follow these steps:

Step 1: Connect to your Lightsail instance

  • Sign in to the AWS Lightsail console at https://lightsail.aws.amazon.com/.
  • Navigate to the instance running your WordPress site and click its name to go to the instance's administration page.

Step 2: Access the instance terminal

  • On the instance administration page, scroll down to the "Connect" section.
  • Click the "Connect using SSH" button to open the browser-based SSH client.

Step 3: Locate the WordPress logs

Once you're connected to the instance via SSH, you can access WordPress logs in the following locations:

  • Apache access logs: /opt/bitnami/apache/logs/access_log
  • Apache error logs: /opt/bitnami/apache/logs/error_log
  • PHP error logs: /opt/bitnami/php/logs/php-fpm.log

Step 4: View the logs

Use a text editor or command line tools like less or tail to view the contents of the log files.

For example, you can use the tail command to view the last few lines of a log file:

tail -n 100 /opt/bitnami/apache/logs/access_log

This command displays the last 100 lines of the Apache access log.

You can use these logs to troubleshoot, track errors, and monitor activity on your AWS Lightsail-hosted WordPress site.

Share:

Related Tutorials

en_US