I guess this doesn't apply 100% to this module, but I'd love some help, and I'm sure somebody else will come across this thread at some point. Anyway...

I recently got put in charge of a site re-design. Prior to this I haven't needed to deal much with the server side of things as far as scripts and whatnot go, but I've been asked to add some chatroom functionality to the new site. Going through the server folders, I found a folder called "Chat" which contains some js files, and an output.log that seems to reference nodejs. I'm assuming that this means that whatever chat was on there before utilized NodeJs in some fashion.

That being said, I have no idea whether or not it was/still is installed on the server. Is there some way that I can verify whether or not it's installed? Is there any test functionality bundled with this module at all, or is there some other way to go about this?

Comments

julien66’s picture

Hello,

Once the module is enabled there is a simple test that is run to check if your setup could communicate with the nodejs server at all. You can check your admin/reports/status to the line Nodejs.

That's being said it is quite unlikely this will work out of the box as you must first configure your nodejs.config.js, install all the required Nodejs module (server side) and then run the node server from the console.

Have a look at the README.txt inside the module for detailled instruction.
++

mrweiner’s picture

Status: Active » Closed (works as designed)

Thanks julien66. The admin report is helpful...I didn't realize that there was a status for this. It is indeed returning that there's an error reaching the nodejs server, so that answers my question.

If you don't mind answering another question...in the README it describes building Node.js. If it is indeed already installed on the server, will there be some sort of conflict if I try and do it again, or will it just fail to install and notify me as such? And am I running these commands via SSH, or is there some sort of console within cpanel that I should be using for this stuff?

julien66’s picture

You can check if you have nodejs installed by opening a ssh session and executing
=> node -v
This should show your current node version (if it's installed).

I don't recommand you to install a new version of node if you already have one installed until you know what you're doing.
I don't know Cpanel. I used ssh to do the install. It went very easy.
Please check : https://github.com/joyent/node/wiki/Installation

Best.

mrweiner’s picture

Thanks. I ended up getting node up to date on the server. Just in case anybody else stumbles upon this page in search of answers, here's how I got everything up and running.

I'm on CentOS 5.2, which apparently can't install the newer version of node through npm since it's only running Python 2.4.

To create an alternate install of Python 2.7 alongside 2.4, follow the instructions at http://justintallant.com/installing-node-on-centos/

Don't install 2.7 over 2.4, because apparently that causes a bunch of features of the OS to stop working.

For the installation of node, the wget in those instructions is old, so follow http://lexsheehan.blogspot.com/2013/03/how-to-install-nodejs-on-centos.h...

Be sure to replace the version number in the last two steps with whichever one was installed via node-latest-tar.gz

bserem’s picture

Version: 7.x-1.6 » 7.x-1.9
Component: Miscellaneous » User interface
Issue summary: View changes
Status: Closed (works as designed) » Active

I seem to be missing something here. In the status page I see no Nodejs area.
In watchdog I have a filter for nodejs.

I can't really think of something that could hide this information from the status page.