node init.js gives me:
events.js:72
throw er; // Unhandled 'error' event
^
Error: bind EACCES
at errnoException (net.js:904:11)
at net.js:1072:30
at Object.5:1 (cluster.js:592:5)
at handleResponse (cluster.js:171:41)
at respond (cluster.js:192:5)
at handleMessage (cluster.js:202:5)
at process.emit (events.js:117:20)
at handleMessage (child_process.js:322:10)
at Pipe.channel.onread (child_process.js:349:11)
2014-08-14 13:10:05 [Master] [Website] Website process died, spawning replacement...
sudo node init.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: bind EADDRINUSE
at errnoException (net.js:904:11)
at net.js:1084:30
at Object.8:1 (cluster.js:592:5)
at handleResponse (cluster.js:171:41)
at respond (cluster.js:192:5)
at handleMessage (cluster.js:202:5)
at process.emit (events.js:117:20)
at handleMessage (child_process.js:322:10)
at child_process.js:396:7
at process.handleConversion.net.Native.got (child_process.js:91:7)
2014-08-14 12:56:51 [Master] [Website] Website process died, spawning replacement...
/etc/apache2/sites-available/coins.abc.com.conf looks like:
<VirtualHost *:80>
ServerAdmin
ronald@me.com ServerName coins.abc.com
DocumentRoot /var/www/html/coins
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
config.json includes:
"website": {
"enabled": true,
"host": "127.0.0.1",
"port": 80,
"stratumHost": "coins.abc.com",
"stats": {
"updateInterval": 60,
"historicalRetention": 43200,
"hashrateWindow": 300
},
"adminCenter": {
"enabled": true,
"password": "1234"
}
},
I tried as host ip 0.0.0.0 and my real ip 1.2.3.4
What am I missing?