Salta al contenuto

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

posta 2 anni fa1,3K visualizzazioni

2 Risposte
1
Risposta accettata

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 ./
ESPERTO

con risposta 2 anni fa

ESPERTO

verificato 2 anni fa

0

Thank you, I got them

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.