Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: Problems Apache2 - mod_perl 1.99
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Fri Jul 30, 2004 12:51 am    Post subject: SOLVED: Problems Apache2 - mod_perl 1.99 Reply with quote

Hi!

I've got an Apache 2.0.49 with mod_php4 and mod_ssl running and want to add mod_perl.

I've emerged everything without errors.

In /etc/apache2/conf/apache2.conf I've added the following:
Code:
LoadModule perl_module                   extramodules/mod_perl.so
PerlModule Apache2

as it can be read at http://perl.apache.org/docs/2.0/user/intro/start_fast.html.

In /etc/conf.d/apache2 I've added the following in the APACHE2_OPTS:
Code:
-D PERL


But when I try to start apache2 it terminates with the following error:
Code:
 * Starting apache2...
apache2: Could not determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
[Fri Jul 30 02:34:42 2004] [error] Can't locate File/Basename.pm in @INC (@INC contains: /usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.4/i686-linux /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3/i686-linux /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2/i686-linux /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl . /usr/lib/apache2/ /usr/lib/apache2/lib/perl) at /usr/lib/perl5/vendor_perl/5.8.2/i686-linux/Apache2.pm line 18.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.2/i686-linux/Apache2.pm line 18.\nCompilation failed in require at /etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl line 1.\nBEGIN failed--compilation aborted at /etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl line 1.\nCompilation failed in require at (eval 1) line 1.\n
[Fri Jul 30 02:34:42 2004] [error] Can't load Perl file: /etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl for server 192.168.0.2:0, exiting...\n   [ !! ]


What's wrong?

Please help.

Thanks in advance
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.


Last edited by fosstux on Wed Aug 04, 2004 1:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
tuxmin
l33t
l33t


Joined: 24 Apr 2004
Posts: 838
Location: Heidelberg

PostPosted: Fri Jul 30, 2004 11:34 am    Post subject: Reply with quote

Code:
# locate Basename.pm
/usr/lib/perl5/5.8.4/File/Basename.pm

# etcat -b /usr/lib/perl5/5.8.4/File/Basename.pm
Searching for /usr/lib/perl5/5.8.4/File/Basename.pm in * ...
dev-lang/perl-5.8.4


maybe you deleted the file accidentally? Try reemering perl!


Alex!!
_________________
ALT-F4
Back to top
View user's profile Send private message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Wed Aug 04, 2004 1:52 pm    Post subject: Reply with quote

Thanks. That worked.
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum