scgiwrap: Caller must be the nobody user

Status
Not open for further replies.

bpathak

New Member
Messages
6
Reaction score
0
Points
0
Hi,

I am trying to run a simple python script, but I keep getting error - "scgiwrap: Caller must be the nobody user"

I have tried all suggestions provided like !shebang,htaccess etc but nothing has worked so far.

#!/usr/bin/python
#!/usr/bin/env python
print "Content-type: text/html"
print "<title>CGI 101</title>"
print "<h1>A First CGI Example</h1>"
print "<P>Hello, CGI World!</p>"
If someone has any idea kindly assist.
Thanks
bpathak
 

adamparkzer

On Extended Leave
Messages
3,745
Reaction score
81
Points
0
I don't have any experience with Python, but it appeared as if nobody else in the forums was able to provide you with a solution, so I'm gonna take a shot at it after doing a little bit of research on Google.

What are the permissions on that file? Apparently, it's supposed to be set to executable (CHMOD 755).
 

bpathak

New Member
Messages
6
Reaction score
0
Points
0
Thanks adamparkzer

Yes the permissions on cgi-bin as well as the script are 755

The script is at below url -
http://bpathak.x10hosting.com/scgi-bin/first.cgi


Appreciate your help!
Edit:
Just noticed that this is not related to python. I tried a simple perl script and get the same error. This seems to be a configuration issue. But I have not made any changes. Any clues what would be wrong?

Thanks.
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
scgiwrap doesn't appear to work on x10. If you want to use it, open the ticket. If you don't need it, put your scripts in cgi-bin rather than scgi-bin.
 

bpathak

New Member
Messages
6
Reaction score
0
Points
0
Mission - The scripts are kept in CGI-BIN directory and SCGI-BIN is empty. Still when I execute I get the error message.

Note - Now the error message has changed to -
"scgiwrap: Cannot stat cgi script/binary. Does it exist?"

I do not know how. I am stuck with this problem and have not changed anything. I think I should listen to Zubair and raise a ticket?
 

Elesarr

New Member
Messages
193
Reaction score
3
Points
0
Mission - The scripts are kept in CGI-BIN directory and SCGI-BIN is empty. Still when I execute I get the error message.

Note - Now the error message has changed to -
"scgiwrap: Cannot stat cgi script/binary. Does it exist?"

I do not know how. I am stuck with this problem and have not changed anything. I think I should listen to Zubair and raise a ticket?

Yes submit a Support Ticket they will be able to assist you! ;)
 

bpathak

New Member
Messages
6
Reaction score
0
Points
0
The problem is resolved. I think I just enabled the simple CGI wrap option in CGIcenter in Cpanel.

I hope this was the solution but again you never know. Anyway I am on my way now.

Thanks everyone for your efforts and support.
 

Elesarr

New Member
Messages
193
Reaction score
3
Points
0
The problem is resolved. I think I just enabled the simple CGI wrap option in CGIcenter in Cpanel.

I hope this was the solution but again you never know. Anyway I am on my way now.

Thanks everyone for your efforts and support.


You're welcome! Good Luck! ;)
 
Status
Not open for further replies.
Top