Want to subscribe to topics you're interested in?
Become a Member

Nginx PHP-FPM MariaDB Auto Restart System Service

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by huaanhhuy, Jul 21, 2020.

  1. huaanhhuy

    huaanhhuy New Member

    19
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    4:16 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.1
    • PHP Version Installed: 7.4.8
    • MariaDB MySQL Version Installed: 10.4.13
    Hi @eva2000 I use Vultr and install CMM, sometimes my websites are down and I have to use restart service command then my website back. It occurs several times a week. I check from server-side, CMM and everything seems does not have any error.

    I found this guide on StackExchange for auto-restart service. Please help me check if it compatible with CMM, thanks

     
  2. huaanhhuy

    huaanhhuy New Member

    19
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    4:16 PM
    @eva2000 Is it ok if i need to auto restart Nginx, PHP-FPM and MySQL service, thanks
     
    Last edited: Jul 23, 2020
  3. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    7:16 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    It's never advisable to auto restart services if you don't know the underlying reason for an issue. It can be detrimental depending on the service i.e. MySQL restarts not done properly or at the wrong time can cause MySQL database corruption which may or may not be fixable !
     
  4. huaanhhuy

    huaanhhuy New Member

    19
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    4:16 PM
    Thanks, but i have a issue with my main server on Vultr, sometime nginx goes down but i dont meet any errors. Then i restart nginx service, it running normally. But it continues down after hours.