Wordpress websites in Ubuntu instance frequently go offline and server needs rebooting each day.

0

Hey everyone, I recently migrated from a web host where I had shared reseller hosting and transferred over 3 WordPress websites that do not get so much traffic. I migrated in Lightsail, using Ubuntu 2 - 2 GB RAM, 2 vCPUs, 60 GB SSD. The first day was fine, all superfast, but the next day no websites worked. The developer rebooted the instance and everything went back to normal. Now, after a week of having migrated, I deal with the same problem - all 3 websites are going offline every day, and sometimes, I notice that they go online on their own. I had the same server configuration as the other host and neither I or my developer who helped me migrate the websites knew what is going on. I read on another question here that it may be memory? Can anyone help or suggest a solution please?

Thank you so much for your help!

asked a month ago111 views
2 Answers
0

Hi Sal,

Based on the information you provided, it does look like a memory and underprovisioning issue. I hope you selected the WordPress multisite option.

You should first check if memory is indeed the issue by monitoring it on AWS CloudWatch. If you are running out of memory, then I suggest increasing the memory to the next tier and see if that helps.

Let me know the results of the monitoring and I can provide some additional guidance.

profile picture
answered a month ago
0

There could be several reasons for this behavior, including resource limitations, software issues, or configuration problems. Here are some steps you can take to troubleshoot and resolve the issue:

Monitor the resource usage (CPU, memory, disk I/O) on your Lightsail instance using system monitoring tools like htop or CloudWatch metrics. If your websites are consuming a lot of resources, you may need to upgrade your instance to a larger size to handle the workload.

Check the system logs (/var/log/syslog, /var/log/messages) and web server logs (Apache or Nginx logs) for any errors or warnings that could indicate the cause of the downtime.

Check the WordPress debug logs (wp-content/debug.log) for any PHP errors or issues related to plugin or theme conflicts.

Ensure that your server software (WordPress, PHP, web server) is up to date with the latest security patches and updates. Outdated software can sometimes lead to stability issues.

Disable any recently installed plugins or themes that could be causing conflicts or performance issues. Re-enable them one by one to identify the culprit.

Implement performance optimizations for your WordPress websites, such as caching, minification, and image optimization, to reduce server load and improve response times.

Set up monitoring and alerting for your Lightsail instance using AWS CloudWatch to receive notifications when resource usage exceeds certain thresholds or when the instance becomes unresponsive.

If managing the server yourself becomes too complex or time-consuming, consider using a managed WordPress hosting service that handles server maintenance and optimization for you.

profile picture
EXPERT
answered a month ago
profile pictureAWS
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions