For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > February 2005 > perl-CGI module - post method









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author perl-CGI module - post method
Victor

2005-02-09, 3:55 pm

I wrote tne initial question about the perl-CGI module and post method.
Thank you for your answers.

The problem is a little more comlicated, but I found a solution.
I belive it is a problem o incompatibility betwen perl-CGI and
something else on my system - possible apache ASP(I can't say exactly
and I don't have any more time to investigate).

The solution:
In CGI.pm I replaced the line
"return $MOD_PERL ? $self->r->read($$buff, $len, $offset) :
read(\*STDIN, $$buff, $len, $offset);"
with
"read(\*STDIN, $$buff, $len, $offset);"
And it worked.

I have perl-CGI 3.05, apache2, Apache-asp 2.57, apache2-mod_perl,
apache2-mod_ssl

And the apache configuration for the working dorectory:
<VirtualHost xxx.xxx.xxx.xxx:443>
ErrorLog logs/ssl-error_log
TransferLog logs/ssl-access_log
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/server.crt
SSLCertificateKeyFile /etc/ssl/apache2/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
RewriteEngine On
RewriteOptions inherit
DocumentRoot /var/www/html/freeside
ServerName xxxxxx
<Perl>
$MLDBM::RemoveTaint = 1;
</Perl>
PerlRequire Require.pm
<Directory /var/www/html/freeside>
<Files ~ (\.cgi)>
AddHandler perl-script .cgi
PerlHandler Apache::ASP
</Files>
PerlSetVar Global /usr/local/etc/freeside/asp-global/
PerlSetVar Debug 2
PerlSetVar Global /usr/local/etc/freeside/asp-global/
AuthName Freeside
AuthType Basic
AuthUserFile /usr/local/etc/freeside/htpasswd
require valid-user
</Directory>
</VirtualHost>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com