I have installed ghost blog in my host and it runs when I open the Softaculous installer. After edit installation and select restart in node js action it runs. But after few moments it stops automatically!
This is my ghost blog domain "http://moonofthedark.com/"
This is the content of my cron php!
Code
<?php
$host = 'www.moonofthedark.com';
$port = '61465';
$cron = true; // Set $cron = false to Stop cron
if(@$_SERVER['SERVER_PORT'] > 1){
die('Not accesible via the web !');
}
if($cron == true){
$checkconn = @fsockopen($host, $port, $errno, $errstr, 5);
if(empty($checkconn)){
exec('export HOME=/home/helvetia/nodejs; cd /home/helvetia/public_html/moonofthedark.com; /home/helvetia/nodejs/bin/npm start --production >> /home/helvetia/nodejs/ghost61465.log 2>&1 &', $out, $ret);
}
}
?>
Any help would be really appreciated!
Thanks
|