Lightsail instance showing HTTP ERROR 500

0

I'm baffled. I run about 20+ Lightsail site for various customers. This one site goes down pretty frequently, but a quick reboot typically brings it back online. Not today. It's been down for more than 2 hours (client is understandably upset).

I have pushed a new copy of WordPress up. I can see that (and have verified) that Apache is running, so is MariaDB, PHP. Standard HTML and PHP files pushed to the root of the site work. (Readme.html, phpinfo.php, and a couple of others). I have verified the .htaccess file, wp-config.php file, file permissions and file ownership. We recently installed WordFence (a paid plan) and had them get into our CloudFlare to add some settings (this was over a week ago and things were running fine). I am completely stumped and need a little help.

A few suggestions on what to check next. I recorded a short video of some of the things I can see (like TablePlus and accessing the production database with no problem). https://app.screencast.com/gsQLVSG4bIVAe

ANY help and suggestions is greatly appreciated!

Cenay
已提问 7 个月前504 查看次数
3 回答
0
已接受的回答

Online with AWS engineer, who had me change the file permissions of the wp-config.php file from 400 to 640. Wordfence (plugin vendor) had me change the file permissions of wp-config.php to 400 as a part of their security audit. Reversing this let me back into the WordPress dashboard.

Cenay
已回答 2 个月前
0

Hello.

Is it possible to connect to Lightsail via SSH?
If it is possible to connect, you need to check the Apache access log and error log to determine the cause of the 500 error.
Since you seem to be using Bitnami WordPress, I think Apache logs are located in the following directory.

/opt/bitnami/apache2/logs
profile picture
专家
已回答 7 个月前
0

Hi, Looks like your site is back up right now. Curious to know what the issue turned out to be ?

Thanks.

profile pictureAWS
专家
AWS-SUM
已回答 7 个月前

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

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

回答问题的准则