Can't use MOd_perl with apache2 and otrs!

ok I can't get otrs to wrok with mod_perl. Perl is complaining that it can't find the Apache.pm. Looking through CPAN it looks like the apache perl module is for the apache1 mod_perl but I'm using apache-2.0.52 for otrs. Furthermore, when I go into the CPAN shell and do a "install Apache" and give it the source for apache, it tells em it can't compile cause it requires 1.3.0 apache version. So how am I supposed to get otrs working with mod_perl with apache2?

kalldrex-otrs@yahoo.com wrote:
ok I can't get otrs to wrok with mod_perl. Perl is complaining that it can't find the Apache.pm. Looking through CPAN it looks like the apache perl module is for the apache1 mod_perl but I'm using apache-2.0.52 for otrs. Furthermore, when I go into the CPAN shell and do a "install Apache" and give it the source for apache, it tells em it can't compile cause it requires 1.3.0 apache version. So how am I supposed to get otrs working with mod_perl with apache2? _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
Go here ==> http://lists.otrs.org/pipermail/otrs/2004-May/004919.html specifically this is helpful: "Yes, this was the main fault: I had forgotten to add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."

Erm, question. The /etc/sysconfig/apache2 in SuSE,
what is that? Is that the httpd.conf for apache2? If
so can you give me more details on where to put "perl"
as our apache config script is written from scratch
and thus has no "APACHE_MODULES" text anywheres in it.
Thanks.
--Matthew Shapiro
--- Jesse Shumaker
Go here ==>
http://lists.otrs.org/pipermail/otrs/2004-May/004919.html
specifically this is helpful:
"Yes, this was the main fault: I had forgotten to add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? => http://www.otrs.de/

kalldrex-otrs@yahoo.com wrote:
Erm, question. The /etc/sysconfig/apache2 in SuSE, what is that? Is that the httpd.conf for apache2? If so can you give me more details on where to put "perl" as our apache config script is written from scratch and thus has no "APACHE_MODULES" text anywheres in it. Thanks.
--Matthew Shapiro
--- Jesse Shumaker
wrote: Go here ==>
http://lists.otrs.org/pipermail/otrs/2004-May/004919.html
specifically this is helpful:
"Yes, this was the main fault: I had forgotten to add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
it's the file /etc/sysconfig/apache2. That is the file. If you wrote your apache2 script from scratch it's hard to help you. This is just what I used to get OTRS working correctly on SuSE 9.1.

On Fri, 2004-11-19 at 16:54, Jesse Shumaker wrote:
kalldrex-otrs@yahoo.com wrote:
Erm, question. The /etc/sysconfig/apache2 in SuSE, what is that? Is that the httpd.conf for apache2? If so can you give me more details on where to put "perl" as our apache config script is written from scratch and thus has no "APACHE_MODULES" text anywheres in it. Thanks.
--Matthew Shapiro
--- Jesse Shumaker
wrote: Go here ==>
http://lists.otrs.org/pipermail/otrs/2004-May/004919.html
specifically this is helpful:
"Yes, this was the main fault: I had forgotten to add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
it's the file /etc/sysconfig/apache2. That is the file. If you wrote your apache2 script from scratch it's hard to help you. This is just what I used to get OTRS working correctly on SuSE 9.1.
This is a little SuSE specific. Apache2 on SuSE uses the /etc/sysconfig/apache2 file to build /etc/apache2/sysconfig.d/loadmodule.conf on starting Apache.. If your configuration does not do this you need to enter something like.. LoadModule perl_module <path to apache2 modules>/mod_perl.so somewhere... (either in http2.conf or in the appropriate include file).
______________________________________________________________________ _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/
--
Meum est propositum
In tabernum mori,
Graham Smith

I have the loadmoduel directive (LoadModule
perl_module modules/mod_perl.so). It keeps
telling me though that Apache.pm can't be found when
running scripts. I get the same error when running
the scripts with perl -cw.
--Matthew Shapiro
--- Graham Smith
On Fri, 2004-11-19 at 16:54, Jesse Shumaker wrote:
kalldrex-otrs@yahoo.com wrote:
Erm, question. The /etc/sysconfig/apache2 in SuSE, what is that? Is that the httpd.conf for apache2? If so can you give me more details on where to put "perl" as our apache config script is written from scratch and thus has no "APACHE_MODULES" text anywheres in it. Thanks.
--Matthew Shapiro
--- Jesse Shumaker
wrote: Go here ==>
http://lists.otrs.org/pipermail/otrs/2004-May/004919.html
specifically this is helpful:
"Yes, this was the main fault: I had forgotten
to
add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? => http://www.otrs.de/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? => http://www.otrs.de/
it's the file /etc/sysconfig/apache2. That is the file. If you wrote your apache2 script from scratch it's hard to help you. This is just what I used to get OTRS working correctly on SuSE 9.1.
This is a little SuSE specific.
Apache2 on SuSE uses the /etc/sysconfig/apache2 file to build /etc/apache2/sysconfig.d/loadmodule.conf on starting Apache..
If your configuration does not do this you need to enter something like..
LoadModule perl_module <path to apache2 modules>/mod_perl.so
somewhere... (either in http2.conf or in the appropriate include file).
______________________________________________________________________
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Meum est propositum In tabernum mori,
Graham Smith
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? => http://www.otrs.de/

Read the README.webserver document, the Module Apache.pm should be in the <otrs root>/Kernel/cpan-lib/CGI directory.... It sounds as if you are missing the relevant use lib settings... On Fri, 2004-11-19 at 17:20, kalldrex-otrs@yahoo.com wrote:
I have the loadmoduel directive (LoadModule perl_module modules/mod_perl.so). It keeps telling me though that Apache.pm can't be found when running scripts. I get the same error when running the scripts with perl -cw.
--Matthew Shapiro
--- Graham Smith
wrote: On Fri, 2004-11-19 at 16:54, Jesse Shumaker wrote:
kalldrex-otrs@yahoo.com wrote:
Erm, question. The /etc/sysconfig/apache2 in SuSE, what is that? Is that the httpd.conf for apache2? If so can you give me more details on where to put "perl" as our apache config script is written from scratch and thus has no "APACHE_MODULES" text anywheres in it. Thanks.
--Matthew Shapiro
--- Jesse Shumaker
wrote: Go here ==>
http://lists.otrs.org/pipermail/otrs/2004-May/004919.html
specifically this is helpful:
"Yes, this was the main fault: I had forgotten
to
add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/
it's the file /etc/sysconfig/apache2. That is the file. If you wrote your apache2 script from scratch it's hard to help you. This is just what I used to get OTRS working correctly on SuSE 9.1.
This is a little SuSE specific.
Apache2 on SuSE uses the /etc/sysconfig/apache2 file to build /etc/apache2/sysconfig.d/loadmodule.conf on starting Apache..
If your configuration does not do this you need to enter something like..
LoadModule perl_module <path to apache2 modules>/mod_perl.so
somewhere... (either in http2.conf or in the appropriate include file).
______________________________________________________________________
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Meum est propositum In tabernum mori,
Graham Smith
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Meum est propositum In tabernum mori,
Graham Smith

Ok I accidentally gave the wrong error (sorry that was
a past error, was looking at the wrong thing). This
is the exact error that apache2's error_log is giving
me (btw my webserver is arleady setup exaclty like the
otrs documentation told me to do):
[Fri Nov 19 15:27:11 2004] [error] [client
132.170.204.208] failed to resolve handler
`Apache::Registry': Can't locate Apache/Registry.pm in
@INC (@INC contains:
/opt/perl-5.8.5/lib/5.8.5/sun4-solaris
/opt/perl-5.8.5/lib/5.8.5 /opt/perl-5.8
.5/lib/site_perl/5.8.5/sun4-solaris
/opt/perl-5.8.5/lib/site_perl/5.8.5 /opt/per
l-5.8.5/lib/site_perl . /opt/apache-2052/
/opt/apache-2052/lib/perl) at (eval 2)
line 3.\n
Just from that it looks like that it's having trouble
with the "PerlHandler Apache::Registry" apache
directive.
--Matthew Shapiro
--- Graham Smith
Read the README.webserver document, the Module Apache.pm should be in the <otrs root>/Kernel/cpan-lib/CGI directory.... It sounds as if you are missing the relevant use lib settings...
On Fri, 2004-11-19 at 17:20, kalldrex-otrs@yahoo.com wrote:
I have the loadmoduel directive (LoadModule perl_module modules/mod_perl.so). It keeps telling me though that Apache.pm can't be found when running scripts. I get the same error when running the scripts with perl -cw.
--Matthew Shapiro
--- Graham Smith
wrote: On Fri, 2004-11-19 at 16:54, Jesse Shumaker wrote:
kalldrex-otrs@yahoo.com wrote:
Erm, question. The /etc/sysconfig/apache2 in SuSE, what is that? Is that the httpd.conf for apache2? If so can you give me more details on where to put "perl" as our apache config script is written from scratch and thus has no "APACHE_MODULES" text anywheres in it. Thanks.
--Matthew Shapiro
--- Jesse Shumaker
wrote: Go here ==>
http://lists.otrs.org/pipermail/otrs/2004-May/004919.html
specifically this is helpful:
"Yes, this was the main fault: I had
forgotten to
add "perl" to the APACHE_MODULES setting in /etc/sysconfig/apache2. SUSE does not do it automatically when installing apache2-mod_perl."
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe:
http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/
it's the file /etc/sysconfig/apache2. That is the file. If you wrote your apache2 script from scratch it's hard to help you. This is just what I used to get OTRS working correctly on SuSE 9.1.
This is a little SuSE specific.
Apache2 on SuSE uses the /etc/sysconfig/apache2 file to build /etc/apache2/sysconfig.d/loadmodule.conf on starting Apache..
If your configuration does not do this you need to enter something like..
LoadModule perl_module <path to apache2 modules>/mod_perl.so
somewhere... (either in http2.conf or in the appropriate include file).
______________________________________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Meum est propositum In tabernum mori,
Graham Smith
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Meum est propositum In tabernum mori,
Graham Smith
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? => http://www.otrs.de/

Ok, I finally see what you are talking about but the
use lib directives in the apache2-perl-startup.pl are
there and point to the correct directories. Even with
those in I try to do a perl -cw
apache2-perl-startup.pl I get this error:
Can't locate Apache.pm in @INC (@INC contains:
/home4/system/otrs/Kernel/cpan-lib /home4/system/otrs/
/opt/perl-5.8.5/lib/5.8.5/sun4-solaris
/opt/perl-5.8.5/lib/5.8.5
/opt/perl-5.8.5/lib/site_perl/5.8.5/sun4-solaris
/opt/perl-5.8.5/lib/site_perl/5.8.5
/opt/perl-5.8.5/lib/site_perl .) at
scripts/apache2-perl-startup.pl line 22.
BEGIN failed--compilation aborted at
scripts/apache2-perl-startup.pl line 22.
Any more ideas? I've gone over the README.webserver
sooo many times but I can't get this to work :(
--Matthew Shapiro
--- Graham Smith
Read the README.webserver document, the Module Apache.pm should be in the <otrs root>/Kernel/cpan-lib/CGI directory.... It sounds as if you are missing the relevant use lib settings...
On Fri, 2004-11-19 at 17:20, kalldrex-otrs@yahoo.com wrote:
I have the loadmoduel directive (LoadModule perl_module modules/mod_perl.so). It keeps telling me though that Apache.pm can't be found when running scripts. I get the same error when running the scripts with perl -cw.
--Matthew Shapiro

I assume you have the checked the usual stuff i.e. Apache.pm exists in the CGI directory indicated and the web server (or otrs account) can access the file. If it is there I would try explicitly setting the path to the CGI directory and see what transpires... On Mon, 2004-11-22 at 15:46, kalldrex-otrs@yahoo.com wrote:
Ok, I finally see what you are talking about but the use lib directives in the apache2-perl-startup.pl are there and point to the correct directories. Even with those in I try to do a perl -cw apache2-perl-startup.pl I get this error:
Can't locate Apache.pm in @INC (@INC contains: /home4/system/otrs/Kernel/cpan-lib /home4/system/otrs/ /opt/perl-5.8.5/lib/5.8.5/sun4-solaris /opt/perl-5.8.5/lib/5.8.5 /opt/perl-5.8.5/lib/site_perl/5.8.5/sun4-solaris /opt/perl-5.8.5/lib/site_perl/5.8.5 /opt/perl-5.8.5/lib/site_perl .) at scripts/apache2-perl-startup.pl line 22. BEGIN failed--compilation aborted at scripts/apache2-perl-startup.pl line 22.
Any more ideas? I've gone over the README.webserver sooo many times but I can't get this to work :(
--Matthew Shapiro
--- Graham Smith
wrote: Read the README.webserver document, the Module Apache.pm should be in the <otrs root>/Kernel/cpan-lib/CGI directory.... It sounds as if you are missing the relevant use lib settings...
On Fri, 2004-11-19 at 17:20, kalldrex-otrs@yahoo.com wrote:
I have the loadmoduel directive (LoadModule perl_module modules/mod_perl.so). It keeps telling me though that Apache.pm can't be found when running scripts. I get the same error when running the scripts with perl -cw.
--Matthew Shapiro
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Meum est propositum In tabernum mori,
Graham Smith
participants (3)
-
Graham Smith
-
Jesse Shumaker
-
kalldrex-otrs@yahoo.com