Hey everyone, I was getting %100 CPU usage on my Mail-in-a-box server a few minutes ago.
I checked htop and it seems like “php-fpm: pool www” is responsible for this and was doing this for an hour or so, I rebooted the server and everything worked fine again.
Can someone tell me why was that happening? Did I get owned?
I checked the logs of both nginx and php7.2-fpm.log, nothing seemed to have caused this issue. I found a few log entries where someone tried invalid addressed in the website (presumably to attack it), but I don’t think that’s related.
You’ll probably see a lot of wordpress/phpmyadmin related strange queries and the queries for your websites. But that’s not causing any high load of php-fpm (except if you’re running this kind of sites under the same uid
I’m thinking that Nextcloud is causing the problem here, since php-fpm seems to get installed because of Nextcloud (according to the MiaB scripts).
Is there a way to install MiaB without Nextcloud? I’m willing to rebuild the server so that’s not a problem.
IMO, Nextcloud carries more harm than good and it should be removed from MiaB since it adds extra attack surface to the server. MiaB should focus on mail and nothing else.
If @joshdata needs any help in modifying the scripts to make Nextcloud optional, I’d be happy to help.
I think it would be pretty easy to implement, the script should just ask the user if he wants to install Nextcloud, and sets an environment variable accordingly.
Every action related to Nextcloud in the scripts will check for that environment variable, and if it says “NO” (or something like that) it would just skip that action.