bitnami / vms

Bitnami VMs
https://bitnami.com
Other
206 stars 44 forks source link

[Wordpress] The new Static IP is not working and resolves at the old one #1702

Open directorslib opened 3 weeks ago

directorslib commented 3 weeks ago

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

fa199d2c-6fd0-b225-fd52-a6844cff0740

bndiagnostic output

✓ Resources: No issues found ? Connectivity: Found possible issues ✓ Mariadb: No issues found ✓ Processes: No issues found ✓ Wordpress: No issues found ? Apache: Found possible issues ✓ Php: No issues found

[Connectivity]

Server ports 22, 80 and/or 443 are not publicly accessible. Please check the following guide to open server ports for remote access:

https://docs.bitnami.com/general/faq/administration/use-firewall/

[Apache]

Found recent error or warning messages in the Apache error log.


[Thu Oct 31 20:50:26.840502 2024] [authz_core:error] [pid 2158:tid 
139921625962240] [client **ip_address**:47200] AH01630: client denied by server 
configuration: /opt/bitnami/apache/cgi-bin
 [Thu Oct 31 21:13:23.424617 2024] [proxy_fcgi:error] [pid 2152:tid 
139921609176832] [client **ip_address**:53266] AH01071: Got error 'PHP message: 
PHP Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) 
in /opt/bitnami/wordpress/wp-includes/functions.php on line 5420; PHP message: 
PHP Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) 
in /opt/bitnami/wordpress/wp-includes/functions.php on line 5420'
 [Thu Oct 31 21:13:24.713222 2024] [proxy_fcgi:error] [pid 2138:tid 
139921343887104] [client **ip_address**:53268] AH01071: Got error 'PHP message: 
PHP Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) 
in /opt/bitnami/wordpress/wp-includes/functions.php on line 5420; PHP message: 
PHP Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) 
in /opt/bitnami/wordpress/wp-includes/functions.php on line 5420'

### bndiagnostic was not useful. Could you please tell us why?

The suggested guides don't seem relevant to my issue?

### Describe your issue as much as you can

Hi there, 

I tried to flip my staging server live today by adding the domain to it and I ran into issues. 

I reverted, but now I can't connect to the instance in browser. The instance has a new Static IP address but always eventually fails and resolves at the old one.

I've tried creating a new instance from a snapshot from a few days ago, but the issue persists which makes me think the issue must have something to do with the Static IP.

The Bitnami diagnostic tool has identified some potential issues with the Apache configuration but none of them seem relevant. AWS support suggested I contact you for help.

Thank you!
directorslib commented 2 weeks ago

Hi, can anyone help with this? Thank you!

jotamartos commented 2 weeks ago

If you are changing domains, you first need to ensure that the domain resolves to the proper IP

https://www.whatsmydns.net/

If that's correct, you need to update the wp-config file (in case you set the domain there) and the references in the database. There was a similar case here

https://github.com/bitnami/vms/issues/100#issuecomment-1188777197

You will need to use this plugin to update the database

https://wordpress.org/plugins/better-search-replace/