SQLSTATE[HY000] [2002] Connection refused, and Website Down on Lightsail Instance after Restart

Keywords: Drupal - AWS - Technical issue - Other
bnsupport ID: 7ef0408b-d753-2665-6ef8-f5098da61604
Description:
Hi, I had my drupal site up and running and when I tried to start the instance again (after stopping to create a snapshot) the instance started fine and I can access SSH normally, however the website is refusing connection and I can’t run drush commands (I get SQL connection refused)

I ran the BN support tool and this is my code 7ef0408b-d753-2665-6ef8-f5098da61604

Hi @ahmedskhorshed

Our support tool did find the following issues in your instance:

The Apache error log may have more information.

? Apache: Found possible issues
✓ mariadb: No issues found
? resources: Found possible issues
✓ php: No issues found

Found recent error messages in the Apache error log.

[Sun Apr 18 23:04:03.620526 2021] [authz_core:error] [pid 1570:tid 140114827036416] [client 154.85.63.8:62887] AH01630: client denied by server configuration: /opt/bitnami/phpmyadmin/index.php

Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

The Apache configuration has errors:

apache2: Syntax error on line 112 of /opt/bitnami/apache2/conf/httpd.conf: module log_config_module is built-in and can't be loaded

Please check the configuration.

System Apache is running:

root      1629  0.0  0.8   8444  4024 ?        Ss   00:21   0:00 /usr/sbin/apache2 -k start
www-data  1632  0.0  0.8 754328  4036 ?        Sl   00:21   0:00 /usr/sbin/apache2 -k start

If Bitnami Apache isn’t starting this is the most likely cause. Please run the following command to stop it:

sudo systemctl disable apache2 && sudo systemctl stop apache2 

After applying the suggestions, could you please execute the following command?:

$ sudo /opt/bitnami/ctlscript.sh status

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.