(Answer) (Category) WebGUI FAQ : (Category) Troubleshooting :
FreeBSD, mod_perl2, apache2, GATEWAY_INTERFACE not Perl!, Can't locate ModPerl/Registry.pm (New: Apache::Request on mod_perl2 RC5)
From crythias's post: So, I'm on my FreeBSD box and having all sorts of problems with mod_perl2 (1.99r16) The port didn't add the LoadModule.
I had to add Perl 5.8.5 from port but you have to use.perl port to start it (so you can use/install the mod_perl2 port).
The mod_perl2 port is installed, but I kept getting Can't locate ModPerl/Registry.pm in @INC
I check my httpd.conf, and it's verbatim with WebGUI install, but changed for my system. I added
LoadModule perl_module libexec/apache2/mod_perl.so
PerlModule Apache2 I added the Options +ExecCGI to the Files directive (necessary in *my* configs to make the .pl work).

Then I started on sbin/preload.perl ... catching up from something I read... somewhere, I added
use Apache2; before use ModPerl::Registry
which helped preload.perl find ModPerl.

I had to re-install all the perl modules as well. Hint: if you want to install via ports, simply portinstall or portupgrade p5-Port-Name... ferinstance portinstall p5-SOAP-Lite I also found this interesting site: http://lists.otrs.org/pipermail/cvs-log/2004-April/003773.html which explained that GATEWAY_INTERFACE not Perl! at /data/WebGUI/sbin/preload.perl is deprecated, and so changing the line based upon:
# make sure we are in a sane environment.
#$ENV{GATEWAY_INTERFACE} =~ /
# check $ENV{MOD_PERL}, $ENV{GATEWAY_INTERFACE} is deprecated for mod_perl2
$ENV{MOD_PERL} =~ /mod_perl/ or die "MOD_PERL not used!";


And wow! I've now got an apache2/modperl2 on FreeBSD working machine (oh, yeah, and WebGUI's sbin/preload.perl seems to not crash apache now :)

Well, I do hope this helps someone. It took me almost a day of work to get it, but I think I tackled most of the problems. It's late for me, and I want to get to sleep.
wg-fomATgwyDOTorg
New problem exists with mod_perl2 RC5 http://sourceforge.net/tracker/index.php?func=detail&aid=1187256&group_id=51417&atid=463213

2005-04-22 05:12 aaronp_critd writes:

Ok I figured it out. The problem centers around the Apache request object. As of mod_perl v2.0.0RC5, the request object package was renamed from Apache to Apache2::RequestUtil. I changed all references from `grep -Er "Apache->request" /usr/local/www/resources/WebGUI` to Apache2::RequestUtil. I did the same for the server object (Apache2::ServerUtil). Goto:

  http://perl.apache.org/dist/mod_perl-2.0-current/Changes

...for more information. These changes will break WG for all versions of mod_perl less than v2.0.0RC5, but with some quick if statements that could be fixed. It would be nice to include these fixed into the future v6.5.7. Thanks.
wg-fomATgwyDOTorg

[Append to This Answer]
Previous: (Answer) Do this first!
Next: (Answer) http:\\\index.pl\ problem- Sitename disappears
This document is: http://www.gwy2.org/cgi-bin/fom?file=15
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ... Gerald Young