Re: APR::Const

2005-04-12 Thread Brent Clark
Octavian Rasnita wrote:
Hi,
Does anyone know where I can download the module APR::Const (for Windows)...
meaning the ppd file?
I have seen that the site jenda.krynicky.cz cannot be found.
Can that module be found somewhere else?
I cannot make mod_perl work without it.
Hi
[EMAIL PROTECTED] sprdsht]# cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')
cpan> i /APR::Const/
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 12 Apr 2005 04:54:43 GMT
Module id = APR::Const
CPAN_USERID  GOZER (Philippe M. Chiasson <[EMAIL PROTECTED]>)
CPAN_VERSION 0.009000
CPAN_FILEG/GO/GOZER/mod_perl-2.0.0-RC4.tar.gz
MANPAGE
INST_FILE 
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/APR/Const.pm
INST_VERSION 0.01
cpan>

Use PPM
Hope this helps
Regards
Brent Clark


Re: Perl + apache + cgi

2004-12-07 Thread Brent Clark
Oh. Think now I've got it. You are running into suexec-problems because 
your Root-Apache is running under anonther user than your V-Host-Apache.

Apache is now using suexec to execute your scripts and because your 
script directory is not part of the suexec-path it cannot execute your 
script.

Why do you need to run your scripts as gevens/gevens?
Tom
Hi
Well the owners of the scripts are gevens,  and I dont think if I remove 
those entrys, it will make any difference.

Brent
begin:vcard
fn:Brent Clark
n:Clark;Brent
email;internet:[EMAIL PROTECTED]
tel;work:27 21 683 0069
tel;fax:27 21 683 6137
note:MSN [EMAIL PROTECTED]
x-mozilla-html:FALSE
version:2.1
end:vcard


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Perl + apache + cgi

2004-12-07 Thread Brent Clark
Tom Schindl wrote:
Hi,
is apache allowed to change to your home directory?
Tom
Brent Clark wrote:
Hi Tom, thanks for reply
Yes apache does and can change to the users home directory
Apache does display the html files in the document root.
Is the cgi-bin thats the problem.
If it helps, I run Debian.
Kind Regards and thanks again
Brent Clark
begin:vcard
fn:Brent Clark
n:Clark;Brent
email;internet:[EMAIL PROTECTED]
tel;work:27 21 683 0069
tel;fax:27 21 683 6137
note:MSN [EMAIL PROTECTED]
x-mozilla-html:FALSE
version:2.1
end:vcard


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Perl + apache + cgi

2004-12-07 Thread Brent Clark
Arnaud Blancher wrote:
Brent Clark wrote:
what's url do you check ?
http://ftp/cgi-bin/logon.pl
(mapped to /home/gevens/cgi-bin/logon.pl)
Hi Arnaud
well since I know the Ip so I use that
basically I type:
 http://192.168.111.12/index.htm (which works)
the page is displayed etc
I then I click on the link to login (now time to goto the cgi-bin)
and then apache or what ever gives me the errors in the log files and 
this on my browser.

Internal Server Error
The server encountered an internal error or misconfiguration and was 
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] 
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/1.3.31 Server at ftp Port 80
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Perl + apache + cgi

2004-12-07 Thread Brent Clark
Hi
Would anyone care to share some info on setting up a CGI.
I keep getting this error:
[Tue Dec  7 09:48:47 2004] [error] [client 192.168.111.214] Premature
end of script headers: /home/gevens/cgi-bin/ecco/scripts/agent/logon.pl
and
[2004-12-07 10:17:28]: info: (target/actual) uid: (gevens/gevens) gid: 
(gevens/gevens) cmd: logon.pl
[2004-12-07 10:17:28]: error: command not in docroot 
(/home/gevens/cgi-bin/ecco/scripts/agent/logon.pl)

Here is the permissions of the file in question:
-rwxr-xr-x  1 gevens gevens   170 Dec  7 12:28 logon.pl
Here is my apache conf:

DocumentRoot /home/gevens/eccotours
ScriptAlias /cgi-bin/ /home/gevens/cgi-bin/
AccessFileName a.htaccess
User gevens
Group gevens
ErrorLog /var/log/apache/ecco.log
CustomLog /var/log/apache/ecco-access.log common

I thought there was something wrong with my script, but this script runs
on my hosted box in the uk, with no problems.
All I did was scp across locally.
I editted the logon.pl script and just made it:
#!/usr/bin/perl -w
#
print "Content-type: text/html\n\n";
#use CGI::Pretty qw();
#use CGI::Carp qw(fatalsToBrowser);
#use strict;
#use warnings;
print "HELLO WORLD";
and still nothing.
I wonder if it does not have anything todo with suEXEC.
[2004-12-07 13:36:14]: info: (target/actual) uid: (gevens/gevens) gid: 
(gevens/gevens) cmd: logon.pl
[2004-12-07 13:36:14]: error: command not in docroot 
(/home/gevens/cgi-bin/ecco/scripts/agent/logon.pl)

Any assistants would be greatly appreciated.
Kind Regards
Brent Clark
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html