View previous topic :: View next topic |
Author |
Message |
randal1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/362525344439017d416a49.gif)
Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Thu Oct 06, 2005 11:39 am Post subject: Problems starting Apache |
|
|
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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GordSki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5492044474381f3049f52f.jpg)
Joined: 18 Oct 2004 Posts: 329
|
Posted: Thu Oct 06, 2005 12:27 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
limn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 13 May 2005 Posts: 997
|
Posted: Thu Oct 06, 2005 12:38 pm Post subject: |
|
|
You might try running
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randal1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/362525344439017d416a49.gif)
Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Thu Oct 06, 2005 1:28 pm Post subject: |
|
|
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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
limn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 13 May 2005 Posts: 997
|
Posted: Thu Oct 06, 2005 2:18 pm Post subject: |
|
|
Code: | perl-cleaner allmodules ask |
Will ask you before re-emerging anything. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randal1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/362525344439017d416a49.gif)
Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Fri Oct 07, 2005 8:19 am Post subject: |
|
|
...that didn't work
Thanks for the suggestion though.
Any other ideas???
![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
limn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 13 May 2005 Posts: 997
|
Posted: Fri Oct 07, 2005 1:35 pm Post subject: |
|
|
Did you re-emerge perl as GordSki suggested? It is perl that is complaining it cannot find Cwd.pm. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randal1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/362525344439017d416a49.gif)
Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Fri Oct 07, 2005 2:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
limn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 13 May 2005 Posts: 997
|
Posted: Fri Oct 07, 2005 3:02 pm Post subject: |
|
|
Perhaps
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randal1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/362525344439017d416a49.gif)
Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Fri Oct 07, 2005 4:07 pm Post subject: |
|
|
Brilliant! that worked a treat!
Thanks a lot guys ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|