- Newest
- Most votes
- Most comments
Based on the information provided, it appears that your WordPress site on Lightsail is experiencing a 404 Not Found error with Nginx. This issue can occur due to various reasons, but let's analyze the specific details you've shared.
The error log you provided indicates that a client attempted to send a request body that was too large (10485761 bytes). This suggests that the issue might be related to file upload limits or POST request size restrictions in your Nginx configuration.
Here are some steps you can take to troubleshoot and potentially resolve the issue:
-
Check your Nginx configuration: Although the Nginx configuration test passed, you may want to review your Nginx configuration files to ensure that client_max_body_size is set appropriately. This setting limits the size of the request body that Nginx will accept.
-
WordPress file upload limits: Verify that your WordPress configuration allows for large file uploads. You may need to adjust the upload_max_filesize and post_max_size values in your php.ini file.
-
Examine WordPress core files: Ensure that all WordPress core files are present and have the correct permissions. The 404 error could be due to missing or inaccessible files.
-
Plugin conflicts: Temporarily disable all plugins to see if the issue resolves. If it does, re-enable them one by one to identify any problematic plugins.
-
Theme issues: Switch to a default WordPress theme to rule out any theme-related problems.
-
Reboot the Lightsail instance: Sometimes, a simple reboot can resolve temporary issues.
-
Check file permissions: Ensure that your WordPress files and directories have the correct permissions set.
-
Verify WordPress URL settings: Double-check that your WordPress site URL and home URL settings are correct in the wp-config.php file or the database.
If these steps don't resolve the issue, you may want to consider restoring from a recent backup or snapshot of your Lightsail instance from before the problem occurred. Additionally, if you continue to experience issues, you might need to investigate further by examining more detailed logs or considering a fresh WordPress installation while preserving your content.
Remember to always keep regular backups of your WordPress site and Lightsail instance to make recovery easier in situations like this.
Sources
Lightsail Wordpress Getting 404 Not Found nginx/1.18.0 Error | AWS re:Post
LightSail Wordpress Error 500 | AWS re:Post
Lightsail wordpress admin dashboard show 404 error | AWS re:Post
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 10 months ago