Question

Centos 8 minimal installation with apache moodle suddenly restarts

I have recently installed moodle 3.9 on CentOS 8 minimal version. Server runs on VM and allocated 16 cores and 64 GB ram due to 1000+ users. Now server starts restarting suddenly. No special senario to point out. all of sudden processor usage goes to 4Ghz or above and vm gettin stuck. Increased the php memory limit to 512MB and incresed values of php-fpm servers and process too. Do you guys have any idea where to look for next?

Using VM Vspere 6.5 with CentOS 8. Recently updated kernal to the latest version too. But no luck.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @lakmalchamila,

I could suggest checking the logs at /var/log/messages, you can do that with the following command:

tail -1000 /var/log/messages

In there look for the approximate time when the server last crashed.

Another thing that I could suggest is checking your PHP logs as well for some more information.

Feel free to share the logs here as well. Regards, Bobby

Hello there,

In addition to what has already been mentioned, I wanted to point out that CentOS Linux 8 has reached End Of Life (EOL) on December 31st, 2021.

I would strongly recommend planning either migration to another OS like Debian or Ubuntu, or upgrading to CentOS Stream.

I personally believe that the safest way to do this is to follow these steps here:

  • Spin up a new Droplet with the desired OS
  • Install the necessary services (webserver, sql server, etc.)
  • After that using rsync for example copy over your files and migrate your databases
  • Then test your website and server fully to make sure that everything is working as expected
  • Finally, change your DNS to point to the new Droplet

Regards, Alex