Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi file execution problem

Status
Not open for further replies.

SrCairo

Technical User
Feb 25, 2005
25
0
0
AR
Hello to all!.

I have a question since I'm not very experienced in CGI issues ...

I have compiled a Python script to a .cgi file (example: myfile.cgi)

I put this file in the directory "cgi-bin" that hangs from the root of the site, up to here everything perfect ..., permission from cgi file is 755 and upload to site in binary mode.

When I call "index.html" in the root and execute the option that calls the file "example.cgi" in "cgi-bin" appears 500 error.

I edit the .htaccess and included the lines:

Options + ExecCGI
AddHandler cgi-bin. cgi


Refresh the browser

When I try to run the cgi file that is downloaded from my site.

The million dollar question is ...

I need to install Python on my web server (JustHost - Web Hosting) for the CGI file is executed properly?, It is my view that not as cgi file should be the result of a compilation, Whichever investigate Python on the server is needed to run scripts .py

As I am new to cgi, would need of some expert's opinion out of my dilemma.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top