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
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