[ale] problems running perl scripts thru apache 2.0.52

Yu, Jerry Jerry.Yu at Voicecom.com
Thu Apr 21 08:34:03 EDT 2005


if it is a cgi, a closer/better test on the command line should be
'./perltest.pl'   which tests the #! line for the correct interpreter
specification and such. 

# -----Original Message-----
# From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On 
# Behalf Of James P. Kinney III
# Sent: Wednesday, April 20, 2005 4:49 PM
# To: Atlanta Linux Enthusiasts
# Subject: Re: [ale] problems running perl scripts thru apache 2.0.52
# 
# Load up the carp module (I think that's the one) and have it 
# dump all error to STDERR. Then you can read the error in the 
# apache error log.
# Premature end of script headers is the usual line that says, 
# "the apache environment is different from what you thing and 
# your script just barfed garbage that is not valid html code".
# 
# On Wed, 2005-04-20 at 13:04 -0700, Eric T wrote:
# > I recently compiled apache 2.0.52 and have recently 
# discovered perl is 
# > no longer working. I am still using the redhat rpm version of perl, 
# > version 5.8.0.
# > 
# > when I call perl programs thru Apache, web server returns  
# "Internal 
# > Server Error" error.
# > 
# > server log shows the following:
# > (8)Exec format error: exec of
# > '/var/www/etools/chocolate/html/perltest.pl' failed 
# Premature end of 
# > script headers: perltest.pl
# > 
# > script runs fine from command line, eg 'perl perltest.pl'
# > 
# > apache has the following modules compiled in:
# >   core.c
# >   mod_access.c
# >   mod_auth.c
# >   mod_include.c
# >   mod_log_config.c
# >   mod_env.c
# >   mod_setenvif.c
# >   mod_proxy.c
# >   proxy_connect.c
# >   proxy_ftp.c
# >   proxy_http.c
# >   mod_ssl.c
# >   prefork.c
# >   http_core.c
# >   mod_mime.c
# >   mod_status.c
# >   mod_autoindex.c
# >   mod_asis.c
# >   mod_cgi.c
# >   mod_negotiation.c
# >   mod_dir.c
# >   mod_imap.c
# >   mod_actions.c
# >   mod_userdir.c
# >   mod_alias.c
# >   mod_rewrite.c
# >   mod_so.c
# > 
# > perl/apache works fine with the redhat/rpm apache version 2.0.46
# > 
# > __________________________________________________
# > Do You Yahoo!?
# > Tired of spam?  Yahoo! Mail has the best spam protection around 
# > http://mail.yahoo.com 
# _______________________________________________
# > Ale mailing list
# > Ale at ale.org
# > http://www.ale.org/mailman/listinfo/ale
# -- 
# James P. Kinney III          \Changing the mobile computing world/
# CEO & Director of Engineering \          one Linux user         /
# Local Net Solutions,LLC        \           at a time.          /
# 770-493-8244                    \.___________________________./
# http://www.localnetsolutions.com
# 
# GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) 
# <jkinney at localnetsolutions.com> Fingerprint = 3C9E 6366 54FC 
# A3FE BA4D 0659 6190 ADC3 829C 6CA7
# 

This email and any attached files herein contain information that is intended only for the use of the individual or entity to whom it is addressed and may contain information that is legally privileged, confidential or otherwise exempt from disclosure under applicable laws. If the reader of this message is not the recipient, any disclosure, dissemination, distribution, copying or other use or retention of this communication or its substance is prohibited.




More information about the Ale mailing list