This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Addons / Re: Installation Node.js and integration
« on: December 05, 2016, 12:59:47 PM »
Hello.
It all looks like you have the same problem with permissions of your directories and files. Make sure you have set 755 on all places where it is needed.
In my case it is:
It all looks like you have the same problem with permissions of your directories and files. Make sure you have set 755 on all places where it is needed.
In my case it is:
Code: [Select]
/
|_ bin <755>
| |_ node <755>
|_ nodejs <755>
| |_ sessions <755>
|_ public_html <755>
|_ cgi-bin <755>
| |_ cgi-node.min.js <755>
|_ index.jscript <755>
SuExec policy violation exception (in all resources I have read) means exactly that problem! If you are have administrative permissions, you can find a suexec.log file maybe it has an answer to all your problems. Or (in a bad case) you need to read this manual carefuly. I have no other thinks.
2
Addons / Re: Installation Node.js and integration
« on: October 20, 2016, 10:41:32 AM »
Hello. May be my english has problems (sorry again), but here is that I meant in one picture.
Check it.
BTW: In cgi-node.js try to replace process.exist() by process.exit(). It is important if you get a script not from github.
I hope it will work.
Have a nice day.
Check it.
BTW: In cgi-node.js try to replace process.exist() by process.exit(). It is important if you get a script not from github.
I hope it will work.
Have a nice day.
3
Addons / Re: Installation Node.js and integration
« on: October 07, 2016, 11:01:57 AM »I followed your directions exactly, and I just got an internal server error when I try to access the index.jscript file.Hello. It looks like you have problems with user permissions in CWP. Try to check user accounts/fix permissions in your CWP to set them in 755 (644 by default for new users). If you are not the administrator of CWP ask your admin to set your user privilegies.
[Wed Oct 05 13:34:48 2016] [error] [client 1.1.1.1] suexec failure: could not open log file
[Wed Oct 05 13:34:48 2016] [error] [client 1.1.1.1] fopen: Permission denied
[Wed Oct 05 13:34:48 2016] [error] [client 1.1.1.1] Premature end of script headers: cgi-node.js
I double-checked the permissions, locations, etc. and everything is exactly as you specify in your directions above.
Any ideas what might be wrong?
Have a nice day.
4
Addons / Re: Installation Node.js and integration
« on: October 01, 2016, 02:24:36 PM »
Hello guys!
First I need to apologise for my broken english. It is foreign language for me.
Almost all of the above methods is well, but on each step it has some mistakes.
So, by the topic I may give you my solution.
1. download the binaries from here https://nodejs.org/en/download/current/
2. download the cgi-node.js from here http://www.cgi-node.org/downloads
3. make the directories structure in your CWP home
5. create .htaccess with the next content (last two lines is very useful, but it is optionally)
7. copy cgi-node.js (or cgi-node.min.js) into the /public_html/cgi-bin folder
8. copy node and/or npm into /bin folder
9. make sure that all executable files (cgi-node.js, node, npm) have rwxr-xr-x (755) permissions and its folders too (chmod button in the cwp file manager)
How to check nodejs? It is very simple after all you have made before.
Make some file with .jscript extension into /public_html folder with the next content
That's all folks
First I need to apologise for my broken english. It is foreign language for me.
Almost all of the above methods is well, but on each step it has some mistakes.
So, by the topic I may give you my solution.
1. download the binaries from here https://nodejs.org/en/download/current/
2. download the cgi-node.js from here http://www.cgi-node.org/downloads
3. make the directories structure in your CWP home
Code: [Select]
/
|_ bin
|_ nodejs
| |_ sessions
|_ public_html <it may exists by default>
|_ cgi-bin
4. edit cgi-node.js in all places where you find D:/Programs..., first line must looks like here:Code: [Select]
!#/home/<username>/bin/node
without any double quotes! In the next place on the text you must replace D:/Programs... by the /home/<username>/nodejs/sessions/ char by char all as I wrote, where <username> means your account name at the CWP5. create .htaccess with the next content (last two lines is very useful, but it is optionally)
Code: [Select]
Action cgi-node /cgi-bin/cgi-node.js
AddHandler cgi-node .jscript
Options -Indexes
DirectoryIndex index.html index.jscript
6. copy .htaccess file into /public_html folder7. copy cgi-node.js (or cgi-node.min.js) into the /public_html/cgi-bin folder
8. copy node and/or npm into /bin folder
9. make sure that all executable files (cgi-node.js, node, npm) have rwxr-xr-x (755) permissions and its folders too (chmod button in the cwp file manager)
Code: [Select]
/
|_ bin <755>
| |_ node <755>
|_ nodejs <755>
| |_ sessions <755>
|_ public_html <755>
|_ cgi-bin <755>
| |_ cgi-node.min.js <755>
|_ index.jscript <755>
10. enjoyHow to check nodejs? It is very simple after all you have made before.
Make some file with .jscript extension into /public_html folder with the next content
Code: [Select]
<? CgiNodeInfo(); ?>
make sure that you write right function name (in this case first letter must be big).That's all folks
Pages: [1]