Skip Menu |

This queue is for tickets about the Inline-Python CPAN distribution.

Report information
The Basics
Id: 40838
Status: rejected
Priority: 0/
Queue: Inline-Python

People
Owner: Nobody in particular
Requestors: juliocbcotta [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.26
Fixed in: (no value)



Subject: apache cgi
off:I am sorry..because I found no place to talk about it too. Someone can tell some forum where I can get some support about perl and Inline Python? well.. I am wondering to know if I can use Inline::Python module under apache.. I made a perl cgi where I call a python function using the Inline::Python.. when I type in the terminal perl file.pl >>file.html I can open the file.html with the right content (html)..it means the python code and the perl code have been interpreted when I run the cgi by myself..but when I try to run it inside of apache (opening the firefox and typing the url) the script does not work. When I try to run a 100% perl script it works ok. I already try to install the python suport in apache..but I got the same problem. I guess apache must have his own perl interpreter..But I am not sure.
On Tue Nov 11 15:06:43 2008, Bugs_Bunny wrote: Show quoted text
> off:I am sorry..because I found no place to talk about it too. > Someone can tell some forum where I can get some support about perl and > Inline Python?
The Inline-mailing list seems to be a far more appropriate place to ask such questions. I'd have answered your first question there, too if you hadn't asked in two places and I had a bug report to close. Show quoted text
> well.. > I am wondering to know if I can use Inline::Python module under apache..
Should be no problem. Show quoted text
> I made a perl cgi where I call a python function using the Inline::Python.. > when I type in the terminal > perl file.pl >>file.html > I can open the file.html with the right content (html)..it means the > python code and the perl code have been interpreted when I run the cgi > by myself..but when I try to run it inside of apache (opening the > firefox and typing the url) the script does not work.
Again, "does not work" is in no way a useful error description. An error message is the least you could provide. Show quoted text
> When I try to run a 100% perl script it works ok. > I already try to install the python suport in apache..but I got the same > problem.
Won't help you in any way. That's a completely different thing. Show quoted text
> I guess apache must have his own perl interpreter..But I am not sure.
Not true. If you're using CGI, you're using the same perl interpreter as on the command line.
From: juliocbcotta [...] gmail.com
one time more..sorry.. I gave no errors to you because I didn't know what error..I just saw in the firefox this. ------------------------------------------------------------------------ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, MY-E-MAIL.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. Apache/2.2.9 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.0 Server at darkin Port 80 ------------------------------------------------------------------------- but now I remember about the apache /var/log/error_log. tail -n 10 /var/log/error_log [Tue Nov 11 19:58:57 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:57 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:57 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:57 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:58 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:58 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:58 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:58 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:58 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl [Tue Nov 11 19:58:58 2008] [error] [client 192.168.1.1] Premature end of script headers: dhcp.pl and the /var/log/access_log 2.168.1.1 - - [11/Nov/2008:19:58:57 -0200] "GET /cgi-bin/dhcp.pl HTTP/1.1" 500 415 192.168.1.1 - - [11/Nov/2008:19:58:58 -0200] "GET /cgi-bin/dhcp.pl HTTP/1.1" 500 415 192.168.1.1 - - [11/Nov/2008:19:58:58 -0200] "GET /cgi-bin/dhcp.pl HTTP/1.1" 500 415 192.168.1.1 - - [11/Nov/2008:19:58:58 -0200] "GET /cgi-bin/dhcp.pl HTTP/1.1" 500 415 192.168.1.1 - - [11/Nov/2008:19:58:58 -0200] "GET /cgi-bin/dhcp.pl HTTP/1.1" 500 415 192.168.1.1 - - [11/Nov/2008:19:58:58 -0200] "GET /cgi-bin/dhcp.pl HTTP/1.1" 500 415 I don't know what more can I do to help you to help me..If you tell me what I need to do..I will do more faster than I can!
On Tue Nov 11 17:02:53 2008, Bugs_Bunny wrote: Show quoted text
> one time more..sorry.. > I gave no errors to you because I didn't know what error..
You always get the answer in your error log. Show quoted text
> but now I remember about the apache /var/log/error_log.
exactly Show quoted text
> tail -n 10 /var/log/error_log > [Tue Nov 11 19:58:57 2008] [error] [client 192.168.1.1] Premature end of > script headers: dhcp.pl
Probably nothing to do with Inline::Python at all. Most probably missing execution rights for the user, apache is running under, missing shebang line or DOS line endings in your script file. Also possible is suexec checks failing. Or maybe the script just doesn't generate any output. My advice would be to try a minimalistic CGI script and go up from there. Something like: #!/usr/bin/perl print "Content-type: text/plain\n\n"; print "Hello world";
From: juliocbcotta [...] gmail.com
yes.. you are the guy!(or the woman..he he) I gave a chmod 0777 (I know..that is not a good thing to be made..)in all the scripts and now It have function.. I am really in shame now..I will stop of annoy you..I will try use the maillist.
Rejecting bug, because it has nothing to do with Inline::Python at all.