跳至内容

After using the bncert-tool on my Wordpress Mutisite all sites are down

0

I ran the bncert-tool yesterday to add new certs for a new site that I added. I'm using Lightsail with a Wordpress multisite installation. Everything was working fine yesterday for a while after making the update, but this morning the entire site randomly stopped working (403 error). I started looking into the issues and it looks like all of my configuration files were overwritten inlcuding the nginx configuration file and and php-fpm config files. I began making some changes, alleviated a 403 error then a 502 error, but php-fpm is still not starting and now after manually starting I get a 500 error.

Is there anything I can do to reverse the changes this tool made?

已提问 3 个月前32 查看次数
1 回答
1

When the bncert-tool runs on a Lightsail WordPress instance, it can sometimes overwrite configuration files, which appears to be what happened in your case. Unfortunately, there isn't a built-in "undo" feature for the bncert-tool, but you can take several steps to restore functionality:

  1. Check for backups: First, see if there are any automatic backups of your configuration files. Sometimes the tool creates .bak files when it makes changes.

  2. Restore from a Lightsail snapshot: If you have a recent snapshot of your Lightsail instance from before running the bncert-tool, you could restore from that snapshot.

  3. Manually fix the configurations:

  • For nginx: Restore the proper multisite configuration in your nginx config files
  • For PHP-FPM: Check the php-fpm configuration files (typically in /opt/bitnami/php/etc/php-fpm.d/) and ensure they have the correct settings
  1. Reset certificates: You might need to reset the certificates using the Bitnami documentation approach. This involves backing up current certificates and then reinstalling them.

  2. Restart services: After fixing configurations, restart the services:

sudo /opt/bitnami/ctlscript.sh restart
  1. Check logs: Review error logs to identify specific issues:
  • Nginx logs: /opt/bitnami/nginx/logs/
  • PHP-FPM logs: /opt/bitnami/php/logs/

For the PHP-FPM issues specifically, check that the socket path in your nginx configuration matches the one in your php-fpm configuration, and that the user permissions are correct.

If these steps don't resolve the issue, you might need to consider restoring from a backup or snapshot if available, or contacting AWS support for more specialized assistance with your multisite configuration.
Sources
Replacing a TSL certificate on LightSail | AWS re:Post
Lightsail/WordPress Site and Subdomain Suddenly Down – Unable to Access | AWS re:Post
WordPress site on Lightsail can't connect to any HTTPS resource | AWS re:Post

已回答 3 个月前
专家
已审核 3 个月前

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

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