title: Why Apache server start automatically everyday and it stops the nodeJs?
body: <p>I am working in MEAN STACK application, I face one issue in a live site.<br>
  In my live web site, I have stop Apache server and run nodeJs by using pm2.<br>
  Once nodeJs started by pm2, my site running very well, but after every next day, Apache server automatically starts and my nodeJs site stop.
  After stopping of Apache server the nodeJS works fine.</p>
  
  <blockquote>
    <p>app.js</p>
  </blockquote>
  
  <pre><code>"use strict";
  var logger = require("./config/log");
  var express = require("express");
  var https = require('https');
  var http = require("http");
  var fs = require('fs');
  var app = express();
  var exec = require('child_process').exec;
  var config, hostName, sslOptions, httpServer, callSocketDir;
  /**
  * @description all process variables
  */
  require("./config/vars")(app, fs);
  
  config = require("./config/config.js")(app, express);
  callSocketDir = './socket';
  
  sslOptions = {
      key: fs.readFileSync(global.hzConfig.privateKey),
      cert: fs.readFileSync(global.hzConfig.certificate),
      passphrase: global.hzConfig.passPhrase
  };
  httpServer = https.createServer(sslOptions, app).listen(global.hzConfig.port,function (req, res) {
      logger.log("info", 'my site is listening on ssl port ' + global.hzConfig.port + ", proccess id is " + process.pid + '!');
      initEmailServer();
  });
  
  require(callSocketDir)(app, httpServer);  
  </code></pre>
  
  <blockquote>
    <p>Stop apache server</p>
  </blockquote>
  
  <pre><code>/usr/local/apache/bin/apachectl stop
  </code></pre>
  
  <blockquote>
    <p>Start nodejs server</p>
  </blockquote>
  
  <pre><code>pm2 start httpsServer.js 
  </code></pre>
  
  <blockquote>
    <p>dependencies</p>
  </blockquote>
  
  <pre><code>"express"  =&gt; "version" : "4.13.4",  
  "nodeJs"   =&gt; "version" : "v7.4.0",  
  "https"    =&gt; "version" : "^1.0.0"
  </code></pre>
  
  <p>Please give me a proper guideline for this issue.
  <a href="https://i.stack.imgur.com/m8MF7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m8MF7.png" alt="enter image description here"></a></p>