내용으로 건너뛰기

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달 전37회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠