INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

cgi file execution problem

cgi file execution problem

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close