Join the community today
Register Now

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

    25
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    11:17 AM
    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

    25
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    11:17 AM
    @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

    54,906
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    2:17 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    25
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    11:17 AM
    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.