Problem with CGI Pearl Konfiugration

This is a discussion on Problem with CGI Pearl Konfiugration within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi there! My Apache 1.3.26 on Suse-Linux runs fine but no Perl-Scripts are working. I used ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-11-2003
Oliver Hallmann
 
Posts: n/a
Default Problem with CGI Pearl Konfiugration

Hi there!



My Apache 1.3.26 on Suse-Linux runs fine but no Perl-Scripts are working.



I used for testing:



#!/usr/bin/perl

use CGI;

my $cgi=new CGI;

print $cgi->header;

print $cgi->start_html(-title => "test page");

print "Hello";

print $cgi->end_html;

exit(0);



This runs fine on the shell. If I try to run it from the /cgi-bin URL the
Apache does not get the Header-Info (or perhaps anything) from the Script.
Well the Script is not the Problem (I tried many). So it must be the
Apache-Configuration.



The ScriptLog says:



%% [Fri Jul 11 15:38:17 2003] GET /cgi-bin/test.cgi HTTP/1.1

%% 500 /srv/www/KuP/www.testserver.de/cgi-bin/test.cgi

%request

Accept: */*

Accept-Encoding: gzip, deflate

Accept-Language: en-us,de;q=0.5

Connection: Keep-Alive

Host: www.testserver.de

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

%response



So no response.



I tried some configuration. At the moment I have this:



<VirtualHost 000.000.000.000:80>

ServerName testserver.de

ServerAlias www.testserver.de

DocumentRoot /srv/www/KuP/testserver.de/htdocs

User htmlproducer

Group www

ErrorDocument 404 /error404.html

ScriptAlias /cgi-bin/ /srv/www/KuP/testserver.de/cgi-bin/

ScriptAlias /awstats/ /srv/www/KuP/testserver.de/awstats/

php_admin_value open_basedir /srv/www/KuP/testserver.de/

php_admin_value upload_tmp_dir /srv/www/KuP/testserver.de/phptmp

ErrorLog /srv/www/KuP/testserver.de/log/error_log

ScriptLog /srv/www/KuP/testserver.de/log/script_log

LogLevel debug

CustomLog /srv/www/KuP/testserver.de/log/access_log combined



<Directory /srv/www/KuP/testserver.de/awstats>

Options ExecCGI

SetHandler cgi-script

AddHandler cgi-script .pl .cgi

</Directory>



<Directory /srv/www/KuP/testserver.de/cgi-bin>

Options ExecCGI

SetHandler cgi-script

AddHandler cgi-script .pl .cgi

</Directory>



</VirtualHost>



What can I try next to make it work?



Thanks in advance,

Oliver Hallmann


  #2 (permalink)  
Old 07-12-2003
Oliver Hallmann
 
Posts: n/a
Default Re: Problem with CGI Pearl Konfiugration

"Oliver Hallmann" <hallmann@kujau-und-partner.de> schrieb im Newsbeitrag
news:bemfte$v8v$07$1@news.t-online.com...
> Hi there!
>
> This runs fine on the shell. If I try to run it from the /cgi-bin URL the
> Apache does not get the Header-Info (or perhaps anything) from the Script.
> Well the Script is not the Problem (I tried many). So it must be the
> Apache-Configuration.
>
>



Just for Info:
I found it! The Confixx-Programm put the "User" and "Group" Parameter to my
Virtual-Configuration. I deleted that an now it's running. So I think there
was a problem with the permissions (even I checked it three times).




 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0