跳至内容

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

已提问 2 年前1294 查看次数

2 回答
1
已接受的回答

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 ./
专家

已回答 2 年前

专家

已审核 2 年前

0

Thank you, I got them

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。