Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems starting Apache
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
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Thu Oct 06, 2005 11:39 am    Post subject: Problems starting Apache Reply with quote

Hi!

I am having trouble starting Apache on my Gentoo Box.
When I try and start Apache, I see...

Code:

MyBox # /etc/init.d/apache start
 * Apache has detected a syntax error in your configuration files:
Processing config directory: /etc/apache/modules.d/*.conf
 Processing config file: /etc/apache/modules.d/10_mod_ssl.conf
 Processing config file: /etc/apache/modules.d/20_mod_perl.conf
[Thu Oct  6 12:05:08 2005] [warn] module mod_perl.c is already added, skipping
 Processing config file: /etc/apache/modules.d/mod_php.conf
Processing config directory: /etc/apache/vhosts.d/*.conf
 Processing config file: /etc/apache/vhosts.d/default-ssl.conf
Can't locate Cwd.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl .) at (eval 2) line 1.


If i do a quick search for the file it is complaining about, Cwd.pm, I can see it exists...

Code:

MyBox # find / -name 'Cwd.pm'
/usr/lib/perl5/5.8.6/i686-linux/Cwd.pm
/usr/lib/perl5/vendor_perl/5.8.6/i686-linux/Cwd.pm


Apache is looking in /usr/lib/perl5/site_perl/5.8.6/i386-linux, and I want it to look in /usr/lib/perl5/site_perl/5.8.6/i686-linux

How can I change this? I have looked through the config files and can't work this problem out!

Any help is appreciated!

Many thanks :D
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Thu Oct 06, 2005 12:27 pm    Post subject: Reply with quote

Could this be an inconsistency between the CHOST used to compile perl and apache?

Try remerging them both with CHOST set to 'i686-pc-linux-gnu' in your '/etc/make.conf'.

G.
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Oct 06, 2005 12:38 pm    Post subject: Reply with quote

You might try running
Code:
perl-cleaner
Back to top
View user's profile Send private message
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Thu Oct 06, 2005 1:28 pm    Post subject: Reply with quote

Hi GordSki! Thanks for the reply...

I checked my '/etc/make.conf' file, and CHOST is set to 'i686-pc-linux-gnu'.

What commands should I use with perl-cleaner?

Many thanks :D
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Oct 06, 2005 2:18 pm    Post subject: Reply with quote

Code:
perl-cleaner allmodules ask

Will ask you before re-emerging anything.
Back to top
View user's profile Send private message
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Fri Oct 07, 2005 8:19 am    Post subject: Reply with quote

...that didn't work :(

Thanks for the suggestion though.

Any other ideas???

:D
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Fri Oct 07, 2005 1:35 pm    Post subject: Reply with quote

Did you re-emerge perl as GordSki suggested? It is perl that is complaining it cannot find Cwd.pm.
Back to top
View user's profile Send private message
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Fri Oct 07, 2005 2:53 pm    Post subject: Reply with quote

Hey :)

I sure did...unfortunately the problem persists. The files it wants exist, just under the wrong directory (i386 instead of i686).
I can't for the life of me work out why! I have looked in the conf files and cant see where they are being told to point at the i386 directory instead.

Thanks for the reply
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Fri Oct 07, 2005 3:02 pm    Post subject: Reply with quote

Perhaps
Code:
emerge libperl
Back to top
View user's profile Send private message
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Fri Oct 07, 2005 4:07 pm    Post subject: Reply with quote

Brilliant! that worked a treat!

Thanks a lot guys :D
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