Skip to content

Wordpress PHP error log access AWS Lightsail Multisite WP

0

I installed a plugin on my WordPress multisite website. It's not working correctly, so the developer asked for my PHP error logs. How do I obtain them? I'm running my WordPress on a Lightsail instance. I tried using SSH with some code I found through a Google search, but it didn't work. Plus, I'm a newbie who wants to do it yourself. Thanks in advance

asked 2 years ago947 views
2 Answers
1
Accepted Answer

Hello.

If you just want to display the log for now, I think you can do it using the method introduced in the blog below.
https://precisefuture.com/en/tutorial/wordpress-logs-in-aws-lightsail/

If you want to download the log file, you will need to connect to Lightsail using an SSH command, copy the error log to the Linux user's home directory, and retrieve it using SCP, etc.
https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-ssh-using-terminal.html

I think the steps in the following document will be helpful for copying files to your home directory.
https://repost.aws/knowledge-center/lightsail-permission-denied-transferring

I think you could download it by copying it to your home directory and running the following SCP command on your PC.

scp -i lightsail-key.pem bitnami@lightsail-instance-public-ip:/home/bitnami/error_log ./
EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
0

Thank you, I got them

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.