Hello everyone, I have been using CyberPanel for over 2 years, and everything has been working fine during that time. Recently, I suddenly noticed that the CPU usage has been consistently between 90-100%. After checking, I found that it might be caused by lsphp.
I checked the forum and deleted all versions of PHP sessions.
I stopped the lsws process.
I contacted the server provider and replaced all hardware in the computer, keeping only the NVME.
I deleted many websites (thinking that too many websites were causing the issue), and in the process, I mistakenly deleted an important website which hasn’t been backed up yet!!! I am close to breaking down!
I have been working for 24 hours straight and tried all the methods mentioned above, but the issue has not been resolved yet. I suspect it might be caused by CyberPanel?? Please help me!
Also, is there any chance of recovering the database I deleted (without a backup)?
Thank you!!!
Thank you for your reply! Using htop, I found that lsphp is consuming the most CPU. The problem is that even after I stop the lsws service, the CPU is still 100% utilized, but htop doesn’t show any process consuming the CPU. I ran your code but got no output.
@josephgodwinke
index.php is just the default file for WordPress. As I mentioned above, even after I stop lsws, the CPU is still 100% utilized!
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
If it is a wordpress website then leverage lscache on your website see if it reduces load. Are you using default wordpress theme ? also default wordpress plugins ?