<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Am Mo, den 08.11.2004 schrieb Eucke Warren um 
19:04:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>> > Does any one have any ideas why I cannot 
run Perl scripts under apache.<BR>> > The Perl script runs fine at the 
command line.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>> > Brian</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Is that still the broken Perl code you posted in 
the other thread?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#!/usr/bin/perl<BR>use strict;<BR>use 
warnings;<BR>print "What is your username? ";<BR>my $username;<BR>$username = 
<STDIN>;<BR>chomp($username);<BR>print "Hello, $username.\n";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>That does not work.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>> I am interested in this one too for FC2.  
Executes fine at the CLI but<BR>> Apache won't touch it other than displaying 
the target script instead of<BR>> executing it.  I've tried httpd.conf 
directives and .htaccess setting<BR>> +ExecCGI to no avail...must be some 
little permissions switch but I cannot<BR>> seem to trace it...anyone have a 
suggestion?<BR>> <BR>> -Eucke</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=700304318-08112004>></SPAN>Does no Perl work or your own code? without 
providing any useful<BR><SPAN class=700304318-08112004>></SPAN>information 
(like code or which public available program you try to use<BR><SPAN 
class=700304318-08112004>></SPAN>and the according error_log entries) no real 
answer can be given. And<BR><SPAN class=700304318-08112004>></SPAN>what 
specific Apache configuration do you use? The cgi scripts are<BR><SPAN 
class=700304318-08112004>></SPAN>displayed as source implies a broken 
httpd.conf setup.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=700304318-08112004>></SPAN>Alexander</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial size=2>Alexander this 
simple script does not work either in Apache but works on the command 
line.</FONT></SPAN></DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial size=2>#!/usr/bin/perl 
-w<BR>use warnings;<BR>print "Content-type: text/html";<BR>print "hello 
WORLD"."\n";</FONT></SPAN></DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial size=2>here is my 
httpd.conf</FONT></SPAN></DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700304318-08112004></SPAN><SPAN 
class=700304318-08112004></SPAN><FONT face=Arial size=2>ServerTokens 
OS<BR>ServerRoot "/etc/httpd"<BR>PidFile run/httpd.pid<BR>Timeout 
300<BR>KeepAlive Off<BR>MaxKeepAliveRequests 100<BR>KeepAliveTimeout 
15<BR><IfModule 
prefork.c><BR>StartServers       
8<BR>MinSpareServers    5<BR>MaxSpareServers   
20<BR>MaxClients       
150<BR>MaxRequestsPerChild  4000<BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><IfModule 
worker.c><BR>StartServers         
2<BR>MaxClients         
150<BR>MinSpareThreads     
25<BR>MaxSpareThreads     75 
<BR>ThreadsPerChild     25<BR>MaxRequestsPerChild  
0<BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Listen 80</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LoadModule access_module 
modules/mod_access.so<BR>LoadModule auth_module 
modules/mod_auth.so<BR>LoadModule auth_anon_module 
modules/mod_auth_anon.so<BR>LoadModule auth_dbm_module 
modules/mod_auth_dbm.so<BR>LoadModule auth_digest_module 
modules/mod_auth_digest.so<BR>LoadModule ldap_module 
modules/mod_ldap.so<BR>LoadModule auth_ldap_module 
modules/mod_auth_ldap.so<BR>LoadModule include_module 
modules/mod_include.so<BR>LoadModule log_config_module 
modules/mod_log_config.so<BR>LoadModule env_module 
modules/mod_env.so<BR>LoadModule mime_magic_module 
modules/mod_mime_magic.so<BR>LoadModule cern_meta_module 
modules/mod_cern_meta.so<BR>LoadModule expires_module 
modules/mod_expires.so<BR>LoadModule deflate_module 
modules/mod_deflate.so<BR>LoadModule headers_module 
modules/mod_headers.so<BR>LoadModule usertrack_module 
modules/mod_usertrack.so<BR>LoadModule setenvif_module 
modules/mod_setenvif.so<BR>LoadModule mime_module 
modules/mod_mime.so<BR>LoadModule dav_module modules/mod_dav.so<BR>LoadModule 
status_module modules/mod_status.so<BR>LoadModule autoindex_module 
modules/mod_autoindex.so<BR>LoadModule asis_module 
modules/mod_asis.so<BR>LoadModule info_module modules/mod_info.so<BR>LoadModule 
dav_fs_module modules/mod_dav_fs.so<BR>LoadModule vhost_alias_module 
modules/mod_vhost_alias.so<BR>LoadModule negotiation_module 
modules/mod_negotiation.so<BR>LoadModule dir_module 
modules/mod_dir.so<BR>LoadModule imap_module modules/mod_imap.so<BR>LoadModule 
actions_module modules/mod_actions.so<BR>LoadModule speling_module 
modules/mod_speling.so<BR>LoadModule userdir_module 
modules/mod_userdir.so<BR>LoadModule alias_module 
modules/mod_alias.so<BR>LoadModule rewrite_module 
modules/mod_rewrite.so<BR>LoadModule proxy_module 
modules/mod_proxy.so<BR>LoadModule proxy_ftp_module 
modules/mod_proxy_ftp.so<BR>LoadModule proxy_http_module 
modules/mod_proxy_http.so<BR>LoadModule proxy_connect_module 
modules/mod_proxy_connect.so<BR>LoadModule cache_module 
modules/mod_cache.so<BR>LoadModule suexec_module 
modules/mod_suexec.so<BR>LoadModule disk_cache_module 
modules/mod_disk_cache.so<BR>LoadModule file_cache_module 
modules/mod_file_cache.so<BR>LoadModule mem_cache_module 
modules/mod_mem_cache.so<BR>LoadModule cgi_module 
modules/mod_cgi.so</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Include conf.d/*.conf</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>User apache<BR>Group apache</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ServerAdmin <A 
href="mailto:root@localhost">root@localhost</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>UseCanonicalName Off</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>DocumentRoot "/var/www/html"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><Directory /><BR>    Options 
FollowSymLinks<BR>    AllowOverride 
None<BR></Directory></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><Directory 
"/var/www/html"><BR>    Options Indexes 
FollowSymLinks<BR>    AllowOverride None<BR>    
Order allow,deny<BR>    Allow from 
all<BR></Directory></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><IfModule 
mod_userdir.c><BR>    UserDir 
disable<BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>DirectoryIndex index.html 
index.html.var</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AccessFileName .htaccess</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><Files ~ "^\.ht"><BR>    Order 
allow,deny<BR>    Deny from all<BR></Files></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>TypesConfig /etc/mime.types</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>DefaultType text/plain</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><IfModule 
mod_mime_magic.c><BR>    MIMEMagicFile 
conf/magic<BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>HostnameLookups Off</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ErrorLog logs/error_log</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LogLevel warn<BR>LogFormat "%h %l %u %t \"%r\" 
%>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined<BR>LogFormat "%h %l %u %t 
\"%r\" %>s %b" common<BR>LogFormat "%{Referer}i -> %U" 
referer<BR>LogFormat "%{User-agent}i" agent</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>CustomLog logs/access_log combined</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ServerSignature On</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Alias /icons/ "/var/www/icons/"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><Directory 
"/var/www/icons"><BR>    Options Indexes 
MultiViews<BR>    AllowOverride None<BR>    Order 
allow,deny<BR>    Allow from 
all<BR></Directory></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AliasMatch 
^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><Directory 
"/var/www/manual"><BR>    Options 
Indexes<BR>    AllowOverride None<BR>    Order 
allow,deny<BR>    Allow from all</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>    <Files 
*.html><BR>        SetHandler 
type-map<BR>    </Files></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>    SetEnvIf Request_URI 
^/manual/de/ prefer-language=de<BR>    SetEnvIf Request_URI 
^/manual/en/ prefer-language=en<BR>    SetEnvIf Request_URI 
^/manual/fr/ prefer-language=fr<BR>    SetEnvIf Request_URI 
^/manual/ja/ prefer-language=ja<BR>    SetEnvIf Request_URI 
^/manual/ko/ prefer-language=ko<BR>    SetEnvIf Request_URI 
^/manual/ru/ prefer-language=ru<BR>    RedirectMatch 301 
^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ 
/manual/$1$2<BR></Directory></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><IfModule mod_dav_fs.c><BR>    
# Location of the WebDAV lock database.<BR>    DAVLockDB 
/var/lib/dav/lockdb<BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><IfModule mod_dav.c><BR>    # 
XML request bodies are loaded into memory; limit to 128K by 
default<BR>    LimitXMLRequestBody 
131072<BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ScriptAlias /cgi-bin/ 
"/var/www/cgi-bin/"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><Directory "/var/www/cgi-bin"> <BR>Options 
None<BR>Order allow,deny <BR>Allow from all <BR>AddHandler cgi-script .cgi 
.pl<BR></Directory><BR> <BR>IndexOptions FancyIndexing VersionSort 
NameWidth=*</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddIconByEncoding (CMP,/icons/compressed.gif) 
x-compress x-gzip</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddIconByType (TXT,/icons/text.gif) 
text/*<BR>AddIconByType (IMG,/icons/image2.gif) image/*<BR>AddIconByType 
(SND,/icons/sound2.gif) audio/*<BR>AddIconByType (VID,/icons/movie.gif) 
video/*</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddIcon /icons/binary.gif .bin .exe<BR>AddIcon 
/icons/binhex.gif .hqx<BR>AddIcon /icons/tar.gif .tar<BR>AddIcon 
/icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv<BR>AddIcon /icons/compressed.gif 
.Z .z .tgz .gz .zip<BR>AddIcon /icons/a.gif .ps .ai .eps<BR>AddIcon 
/icons/layout.gif .html .shtml .htm .pdf<BR>AddIcon /icons/text.gif 
.txt<BR>AddIcon /icons/c.gif .c<BR>AddIcon /icons/p.gif .pl .py<BR>AddIcon 
/icons/f.gif .for<BR>AddIcon /icons/dvi.gif .dvi<BR>AddIcon /icons/uuencoded.gif 
.uu<BR>AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl<BR>AddIcon 
/icons/tex.gif .tex<BR>AddIcon /icons/bomb.gif core</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddIcon /icons/back.gif ..<BR>AddIcon 
/icons/hand.right.gif README<BR>AddIcon /icons/folder.gif 
^^DIRECTORY^^<BR>AddIcon /icons/blank.gif ^^BLANKICON^^</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>DefaultIcon /icons/unknown.gif</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ReadmeName README.html<BR>HeaderName 
HEADER.html</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v 
*,t</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddLanguage ca .ca<BR>AddLanguage cs .cz 
.cs<BR>AddLanguage da .dk<BR>AddLanguage de .de<BR>AddLanguage el 
.el<BR>AddLanguage en .en<BR>AddLanguage eo .eo<BR>AddLanguage es 
.es<BR>AddLanguage et .et<BR>AddLanguage fr .fr<BR>AddLanguage he 
.he<BR>AddLanguage hr .hr<BR>AddLanguage it .it<BR>AddLanguage ja 
.ja<BR>AddLanguage ko .ko<BR>AddLanguage ltz .ltz<BR>AddLanguage nl 
.nl<BR>AddLanguage nn .nn<BR>AddLanguage no .no<BR>AddLanguage pl 
.po<BR>AddLanguage pt .pt<BR>AddLanguage pt-BR .pt-br<BR>AddLanguage ru 
.ru<BR>AddLanguage sv .sv<BR>AddLanguage zh-CN .zh-cn<BR>AddLanguage zh-TW 
.zh-tw<BR>LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl 
nn no pl pt pt-BR ru sv zh-CN zh-TW<BR>ForceLanguagePriority Prefer 
Fallback</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddDefaultCharset UTF-8</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddCharset ISO-8859-1  .iso8859-1  
.latin1<BR>AddCharset ISO-8859-2  .iso8859-2  .latin2 
.cen<BR>AddCharset ISO-8859-3  .iso8859-3  .latin3<BR>AddCharset 
ISO-8859-4  .iso8859-4  .latin4<BR>AddCharset ISO-8859-5  
.iso8859-5  .latin5 .cyr .iso-ru<BR>AddCharset ISO-8859-6  
.iso8859-6  .latin6 .arb<BR>AddCharset ISO-8859-7  .iso8859-7  
.latin7 .grk<BR>AddCharset ISO-8859-8  .iso8859-8  .latin8 
.heb<BR>AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk<BR>AddCharset 
ISO-2022-JP .iso2022-jp .jis<BR>AddCharset ISO-2022-KR .iso2022-kr 
.kis<BR>AddCharset ISO-2022-CN .iso2022-cn .cis<BR>AddCharset 
Big5        
.Big5       .big5<BR>AddCharset WINDOWS-1251 
.cp-1251   .win-1251<BR>AddCharset 
CP866       .cp866<BR>AddCharset 
KOI8-r      .koi8-r .koi8-ru<BR>AddCharset 
KOI8-ru     .koi8-uk .ua<BR>AddCharset ISO-10646-UCS-2 
.ucs2<BR>AddCharset ISO-10646-UCS-4 .ucs4<BR>AddCharset 
UTF-8       .utf8<BR>AddCharset 
GB2312      .gb2312 .gb <BR>AddCharset 
utf-7       .utf7<BR>AddCharset 
utf-8       .utf8<BR>AddCharset 
big5        .big5 .b5<BR>AddCharset 
EUC-TW      .euc-tw<BR>AddCharset 
EUC-JP      .euc-jp<BR>AddCharset 
EUC-KR      .euc-kr<BR>AddCharset shift_jis   
.sjis</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddType application/x-compress .Z<BR>AddType 
application/x-gzip .gz .tgz</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddHandler cgi-script .cgi<BR>AddHandler imap-file 
map<BR>AddHandler type-map var</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AddType text/html .shtml<BR>AddOutputFilter 
INCLUDES .shtml</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Alias /error/ "/var/www/error/"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><IfModule mod_negotiation.c><BR><IfModule 
mod_include.c><BR>    <Directory 
"/var/www/error"><BR>        AllowOverride 
None<BR>        Options 
IncludesNoExec<BR>        AddOutputFilter 
Includes html<BR>        AddHandler type-map 
var<BR>        Order 
allow,deny<BR>        Allow from 
all<BR>        LanguagePriority en es de 
fr<BR>        ForceLanguagePriority Prefer 
Fallback<BR>    </Directory></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></IfModule><BR></IfModule></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>BrowserMatch "Mozilla/2" 
nokeepalive<BR>BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 
force-response-1.0<BR>BrowserMatch "RealPlayer 4\.0" 
force-response-1.0<BR>BrowserMatch "Java/1\.0" 
force-response-1.0<BR>BrowserMatch "JDK/1\.0" force-response-1.0<BR>BrowserMatch 
"Microsoft Data Access Internet Publishing Provider" 
redirect-carefully<BR>BrowserMatch "^WebDrive" 
redirect-carefully<BR>BrowserMatch "^WebDAVFS/1.[012]" 
redirect-carefully<BR>BrowserMatch "^gnome-vfs" redirect-carefully</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial 
size=2>TY</FONT></SPAN></DIV>
<DIV><SPAN class=700304318-08112004><FONT face=Arial 
size=2>Brian</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>