Re: [Mason] problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-10 Thread Bruce Albrecht
Must you send multiple copies of this to both the modperl and mason
mailing lists?  I don't use Red Hat Linux, but my first suggestion is
to scrap it in favor of some other version of Linux, or maybe even
FreeBSD.  RedHat has a tendency to use development versions of Perl
and other software in their release (without identifying it as such),
and it's known to be buggy (in particular, Red Hat's version of perl
5.8.0 and mod_perl 2.0).  Mason was written with Apache 1.x and
mod_perl, and use with Apache 2.x/mod_perl 2.0 is not supported, and
probably won't be supported until mod_perl 2.0 is finally released.

parvez mohamed writes:
 > I have RedHat 9, I have installed Apache using rpm
 > wich comes with RedHat9 (httpd-2.0.40-21) then i
 > haveinstalled mod_perl using rpm mod_perl-1.99_07-5
 > then is have installed the latest Mason files
 > HTML-Mason-1.22) but when i try to start Apache it says
 > Apache/Constants.pm not found. I serched CAPAN for
 > Apache::Constents it points to mod_perl which i
 > have already installed. 
 > 
 > for your information i have added these lines to
 > httpd.conf:
 > PerlModule HTML::Mason::ApacheHandler
 > 
 > SetHandler perl-script
 > PerlHandler HTML::Mason::ApacheHandler
 > 
 > the error i get is:
 > Can't locate Apache/Constants.pm in @INC (@INC
 > contains
 > .
 > ...
 >  /usr/lib/perl5/5.8.0 .) at
 > /usr/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pm
 > line 13.!BEGIN failed--compilation aborted at
 > /usr/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pm
 > line 13.!Compilation failed in require at (eval 1)
 > line 3.!
 > [Tue Sep 09 16:28:02 2003] [error] Can't load Perl
 > module HTML::Mason::ApacheHandler for server
 > 127.0.0.1:0, exiting...!
 > 
 > To over come this problem i put in these entries
 > :
 > I put in these lines in my httpd.conf file
 > PerlModule Apache2  
 > PerlModule Apache::compat 
 > PerlModule HTML::Mason::ApacheHandler
 >  
 >SetHandler perl-script
 >   PerlHandler HTML::Mason::ApacheHandler


Re: problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-09 Thread Stas Bekman
parvez mohamed wrote:
I have RedHat 9, I have installed Apache using rpm
wich comes with RedHat9 (httpd-2.0.40-21) then i
haveinstalled mod_perl using rpm mod_perl-1.99_07-5
I don't know what version HTML::Mason is relying on (I'll let the mason 
developers to comment on it), but you probably want to use the latest released 
mod_perl 1.99_09 and apache 2.0.47 before you start reporting problems which 
were fixed alredy. You can find rawhide rpm versions of those on rpmfind.net.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-09 Thread parvez mohamed
I have RedHat 9, I have installed Apache using rpmwich comes with RedHat9 (httpd-2.0.40-21) then ihaveinstalled mod_perl using rpm mod_perl-1.99_07-5then is have installed the latest Mason filesHTML-Mason-1.22) but when i try to start Apache it saysApache/Constants.pm not found. I serched CAPAN forApache::Constents it points to mod_perl which ihave already installed. for your information i have added these lines tohttpd.conf:PerlModule HTML::Mason::ApacheHandlerSetHandler perl-scriptPerlHandler HTML::Mason::ApacheHandlerthe error i get is:
Can't locate Apache/Constants.pm in @INC (@INCcontains /usr/lib/perl5/5.8.0 .) at/usr/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pmline 13.!BEGIN failed--compilation aborted at/usr/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pmline 13.!Compilation failed in require at (eval 1)line 3.![Tue Sep 09 16:28:02 2003] [error] Can't load Perlmodule HTML::Mason::ApacheHandler for server127.0.0.1:0, exiting...!
To over come this problem i put in these entries
:I put in these lines in my httpd.conf file
PerlModule Apache2  PerlModule Apache::compat PerlModule HTML::Mason::ApacheHandler    SetHandler perl-script  PerlHandler HTML::Mason::ApacheHandler 
now the server satrts up well but when i wanted totest some Mason set up  i put in a file  called"greet.nml" in my document root  its contesnt :Greetings, <% ("Earthlings", "Martians")[rand 2] %>
only one line but is get internal server error when ilook it up in the browserIt would help if some would let me know what to do and what is happning 
 
It would be of great help if some one could tell me the step by step process for installing apache, mod_perl, and mason in a clean and eassy way and what version numbers to use sothat i dont face much problems is RedHat 8 or 7 better than RedHat9 when it comes to this 
 
it will also help if you could provide me some links also
 
thanks in advance
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software