EC2实例(Bitnami镜像)WordPress站点无法访问求助
问题描述
重启EC2实例上的Bitnami WordPress镜像后,浏览器访问站点出现以下错误:
ec2-<IP_address>.eu-central-1.compute.amazonaws.com refused to connect. ERR_CONNECTION_REFUSED
环境配置
- 1台EC2实例
- 1个VPC
- 1个公共托管路由表
- 1个网络ACL
- 1个已关联VPC和EC2的弹性IP
- 4个关联VPC的安全组(3个Bitnami安全组,1个默认安全组)
- 1个互联网网关
- 1个DHCP选项集
EC2实例详情
- 平台:Debian、Linux/UNIX
- AMI名称:bitnami-wordpress-6.0.1-2-r02-linux-debian-11-x86_64-hvm-ebs-nami-7d426cb7-9522-4dd7-a56b-55dd8cc1c8d0
- AMI位置:aws-marketplace/bitnami-wordpress-6.0.1-2-r02-linux-debian-11-x86_64-hvm-ebs-nami-7d426cb7-9522-4dd7-a56b-55dd8cc1c8d0
- 实例两项状态检查均通过:系统可达性检查、实例可达性检查
- 已关联弹性IP,路由表存在对应A记录
Bitnami诊断工具输出
执行命令sudo /opt/bitnami/bndiagnostic-tool后,输出摘要如下:
? Resources: Found possible issues ? Connectivity: Found possible issues ✓ Mariadb: No issues found ✓ Processes: No issues found ? Wordpress: Found possible issues ? Apache: Found possible issues ✓ Php: No issues found ... **Apache** [Apache] Press [Enter] to continue: Found recent error or warning messages in the Apache error log. [Sun Feb 26 20:59:56.709925 2023] [proxy_fcgi:error] [pid 952:tid 140329768302336] (70007)The timeout specified has expired: [client **ip_address**:32977] AH01075: Error dispatching request to : (polling), referer: https://www.<my-domain-name.com>/wp-admin/admin.php?page=w3tc_dashboard&_wpnonce=521586fa3b& w3tc_note=flush_all [Sun Feb 26 20:59:43.844511 2023] [proxy_fcgi:error] [pid 952:tid 140330158352128] (70007)The timeout specified has expired: [client **ip_address**:28814] AH01075: Error dispatching request to : (polling), referer: https://www.<my-domain-name.com>/wp-admin/admin.php?page=w3tc_dashboard&_wpnonce=521586fa3b [Sun Feb 26 21:00:29.519343 2023] [proxy_fcgi:error] [pid 689:tid 140329474819840] (70007)The timeout specified has expired: [client **ip_address**:51737] AH01075: Error dispatching request to : (polling) ... **[Wordpress]** Found recent WordPress plugin related error messages in the Apache error log. [Sun Feb 26 21:00:44.149415 2023] [proxy_fcgi:error] [pid 952:tid 140330003298048] (70007)The timeout specified has expired: [client **ip_address**:20346] AH01075: Error dispatching request to : (polling), referer: https://www.<my-domain-name.com>/wp-admin/plugins.php?s=&plugin_status=all
附加问题
- 尝试执行
sudo systemctl restart httpd重启Web服务,提示Unit httpd.service could not be found. - 仅能通过Putty以bitnami用户连接实例,使用ec2-user或admin用户通过Putty或EC2 Instance Connect连接时均报错:
Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.
无法判断问题出在AWS还是Bitnami环境,需要精准的分步解决步骤,可提供更多相关截图。
内容的提问来源于stack exchange,提问作者Dantes
相关产品推荐
相关产品推荐

