running node-cgi on virtualmin

1 post / 0 new
#1 Thu, 03/05/2015 - 11:04
edwardsmarkf

running node-cgi on virtualmin

hi -

i am trying to get the first example from http://larsjung.de/node-cgi/ working.

has anybody ever seen an error like this?

[Thu Mar 05 11:34:25 2015] [error] [client 174.26.106.78] suexec failure: could not open log file

[Thu Mar 05 11:34:25 2015] [error] [client 174.26.106.78] fopen: Permission denied

[Thu Mar 05 11:34:25 2015] [error] [client 174.26.106.78] Premature end of script headers: hello.nd

i think have all of my protections correct:

ls -l node-cgi ;

lrwxrwxrwx 1 foo.com foo.com 43 Mar 5 11:12 node-cgi -> /usr/lib/node_modules/node-cgi/bin/node-cgi

cat ../public_html/.htaccess ;

Action "node-script" "/cgi-bin/node-cgi" AddHandler "node-script" ".nd"

ls -l hello.nd ;

-rwxrwxr-- 1 foo.com foo.com 101 Mar 5 10:53 hello.nd

cat hello.nd ;

header('Content-Type', 'text/plain'); writeLine('Hello!'); writeLine(dirname); writeLine(filename);

i tried setting hello.nd to everything i can think of: 700 744 740 770 777 etc

any thoughts?

my settings below: Run cgi-script as domain owner? YES PHP script execution mode: CGI wrapper (run as virtual server owner)