bitnami / vms

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

[WordPress] HTTP ERROR 500, and have 2 Questions #17

Closed agomezmoron closed 2 years ago

agomezmoron commented 2 years ago

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

a1ad2025-43cb-ba0a-9ad9-3beda30f27b4

bndiagnostic output

? Apache: Found possible issues ? Resources: Found possible issues https://docs.bitnami.com/general/apps/wordpress/administration/use-pagespeed/#disable-pagespeed https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/ https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-memory-linux/

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

I didn't find any solution in the documentation.

Describe your issue as much as you can

(migrated from community.bitnami.com)

I am using bitnami wordpress on aws. Few days ago, I set cloudflare and had some problem so I restored to previous. Now it had ‘HTTP ERROR 500’ so I’ve checked (https://wpbuffs.com/http-error-500-wordpress/) but still have problem.

Q. I think, the problem related with bitnami wordpress. Please let me know if you have any idea.

Q. Where can I download my posts data? I want to download via FTP. Please let me know where is posts folder.

agomezmoron commented 2 years ago

Hi,

Thanks for the info and the new bndiagnostic code. I visited your website using the curl command-line tool and I think I know what’s causing your errors. The curl command failed with a curl: (47) Maximum (50) redirects followed error message, which is the same ERR_TOO_MANY_REDIRECTS I get using the browser. Find below part of the trace of the curl command

$ curl -LI "http://lalala***world.com"
HTTP/1.1 302 Found
Date: Thu, 25 Nov 2021 09:20:26 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Location: https://lalala***world.com/
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 301 Moved Permanently
Date: Thu, 25 Nov 2021 09:20:27 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Location: https://www.lalala***world.com/
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 301 Moved Permanently
Date: Thu, 25 Nov 2021 09:20:28 GMT
Server: Apache
X-Powered-By: PHP/7.4.7
X-Redirect-By: WordPress
Set-Cookie: uncode_privacy[consent_types]=%5B%5D; expires=Fri, 25-Nov-2022 09:20:28 GMT; Max-Age=31536000; path=/; secure; SameSite=Strict
X-Frame-Options: SAMEORIGIN
Location: https://lalala***world.com/
Content-Type: text/html; charset=UTF-8

HTTP/1.1 301 Moved Permanently
Date: Thu, 25 Nov 2021 09:20:28 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Location: https://www.lalala***world.com/
Content-Type: text/html; charset=iso-8859-1
(...)
curl: (47) Maximum (50) redirects followed

As you can see, Apache is redirecting all requests to https://www.yourdomain.com, but WordPress is configured with https://yourdomain.com only (no www subdomain), which is causing the redirect loop. Can you update the wp-config.php with https://www.YOUR_DOMAIN.com (remember to replace the YOUR_DOMAIN placeholder), restart Apache and try again?

If you continue having issues, please run the tool again and share it with us so we can check the updated config.