Problem to run cgi scripts

Status
Not open for further replies.

hrbpl

New Member
Messages
3
Reaction score
0
Points
0
Hello Everybody.
I have a problem to run cgi script on my webpage.
I have html page with form where i call xxx.cgi file like this:
<form METHOD="post" ACTION="http://xxx.x10hosting.com/scgi-bin/xxx.cgi">

I Uploaded my "index.htm" file to public_html folder.
then i went to CGI Center and click Simple CGI Wrapper.
It created scgi-bin folder where i uploaded my xxx.cgi script
I also set permission to my cgi file to 755.

Finaly i open my webpage in IE, fill my form, click ok, and..... script don't start. Instead of IE display me download window. i can download my cgi file.
Can you help me how can I run my cgi script ?
 

hrbpl

New Member
Messages
3
Reaction score
0
Points
0
Why scgi-bin and not cgi-bin?

Because:

cPanelX -> CGI Center -> Simple CGI Wrapper
"
You will need to place the CGI Scripts that you want to run with your userid in the directory
/home/xxx/public_html/scgi-bin
. Once you do this they can be accessed at http://xxx.x10hosting.com/scgi-bin/
"

[Edit]
OK, I cahnge form request from
<form METHOD="post" ACTION="http://xxx.x10hosting.com/scgi-bin/xxx.cgi">
to
<form METHOD="post" ACTION="http://xxx.x10hosting.com/cgi-bin/xxx.cgi">

Copy my xxx.cgi to cgi-bin, set permission to 775 and now i receive 404 (not found) error :-(

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@xxx.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_mono/1.2.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at xxx.x10hosting.com Port 80
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,550
Reaction score
205
Points
63
Check the error_log in your cPanel for more information.
 

hrbpl

New Member
Messages
3
Reaction score
0
Points
0
Check the error_log in your cPanel for more information.

[Wed Mar 26 09:48:48 2008] [error] [client 207.190.222.178] File does not exist: /home/xxx/public_html/404.shtml
[Wed Mar 26 09:48:48 2008] [error] [client 207.190.222.178] File does not exist: /home/xxx/public_html/favicon.ico
[Wed Mar 26 09:48:47 2008] [error] [client 207.190.222.178] File does not exist: /home/xxx/public_html/404.shtml
[Wed Mar 26 09:48:47 2008] [error] [client 207.190.222.178] File does not exist: /home/xxx/public_html/favicon.ico


no errors with xxx.cgi file :-(
 

Corey

I Break Things
Staff member
Messages
34,550
Reaction score
205
Points
63
Please give me links to the actual files.
 
Status
Not open for further replies.
Top