AWS Lightsail crashing regularly

Keywords: WordPress - AWS - Technical issue - Other

bndiagnostic ID: 1178c447-40f7-9079-17da-fb24f005665d

bndiagnostic output:

? Apache: Found possible issues
? Wordpress: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

bndiagnostic failure reason: I do not know how to perform the changes explained in the documentation

Description:
Hi there,
I have an install of Wordpress on a starter AWS Lightsail plan. I find that the site crashes a lot and the only way to get ti back is to stop/start the instance.

The Bitnami Dignostic tool indicates some problems. I think the memory one is most likely however, the site is very simple with very low demand. It is just a little shop!

Should I try to increase the memory limit. I ask as I run a number of other 512M RAM instances without problems.

Many thanks,
Jack

===== Begin of bndiagnostic tool output =====

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

[Apache]

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

[Mon Jun 20 10:30:15.416013 2022] [proxy_fcgi:error] [pid 748:tid 
140375167596288] [client 2a02:c7f:f527:7800:c420:17cd:1e23:fc7:60275] AH01071: 
Got error 'PHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.phpPHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.php', referer: 
Press [Enter] to continue:
https://cloverleaf3d.xyz/wp-admin/edit.php?post_type=shop_order
 [Mon Jun 20 10:30:30.518661 2022] [proxy_fcgi:error] [pid 1100:tid 
140374966171392] [client 2a02:c7f:f527:7800:c420:17cd:1e23:fc7:60287] AH01071: 
Got error 'PHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.phpPHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.php', referer: 
https://cloverleaf3d.xyz/wp-admin/edit.php?post_type=shop_order
 [Mon Jun 20 10:32:35.439068 2022] [proxy_fcgi:error] [pid 1100:tid 
140374974564096] [client 2a02:c7f:f527:7800:c420:17cd:1e23:fc7:60355] AH01071: 
Got error 'PHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.phpPHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.php', referer: 
https://cloverleaf3d.xyz/wp-admin/edit.php?post_type=shop_order

Please check the following guide to troubleshoot server issues:

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

[Wordpress]

Found recent WordPress plugin related error messages in the Apache error log.
Press [Enter] to continue:

[Mon Jun 20 10:33:02.864568 2022] [proxy_fcgi:error] [pid 747:tid 
140375142418176] [client 2a02:c7f:f527:7800:c420:17cd:1e23:fc7:60372] AH01071: 
Got error 'PHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.phpPHP message: [ERROR] : WP_CACHE constant is not present in 
wp-config.php', referer: 
https://cloverleaf3d.xyz/wp-admin/plugin-install.php?s=Bitnami&tab=search&type=te
rm

Please check the following guide to deactivate plugins:

https://developer.wordpress.org/cli/commands/plugin/deactivate/

[Resources]

Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 482 329 6 57 146 82 Swap: 634 
278 356

You could try to increase your instance’s memory. Please check your cloud
provider’s documentation for more information.
Press [Enter] to continue:

===== End of bndiagnostic tool output =====

I’ve just checked and the limit is alread 512M. This is the size of the instance.

memory_limit = 512M

Should 512M be enough for a low demand WooCommerce shop?

Thanks,
Jack

Hi @Jack155Q4,

I recommend trying with 1GB and then scale it up when there is more traffic. Make sure you back up the data and know how migrate your site.

https://docs.bitnami.com/aws/how-to/migrate-wordpress/

Regards,
Michiel

Thank you Michiel, that is helpful and I will try this.