Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting up a local web server
Date: Mon, 04 Apr 2011 09:18:32
Message-Id: 201104041117.34193.joost@antarean.org
In Reply to: Re: [gentoo-user] Setting up a local web server by Peter Humphrey
1 On Friday 01 April 2011 21:56:47 Peter Humphrey wrote:
2 > On Friday 01 April 2011 13:18:39 Stéphane Guedon wrote:
3 > > I have APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D PHP5"
4 > >
5 > > you should try at least language and php5 !
6 >
7 > That missing 5 is important - thanks.
8 >
9 > Then, however, I got this:
10 >
11 > * apache2 has detected an error in your setup:
12 > apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax error
13 > on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load
14 > /usr/lib/apache2/modules/libphp5.so into server:
15 > /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No
16 > such file or directory
17 >
18 > That's after emerge -Cv apache and removing by hand all files and
19 > directories left behind by emerge. Same with php. Then I reinstalled both
20 > apache and php but without using the packages I had and all came right -
21 > thanks Stéphane.
22 >
23 > This is connected with the other thread I've written to today, about using
24 > my workstation as an emerge server. A complication I didn't mention there
25 > is that both make.conf and package.use have to be identical in the chroot
26 > and the target system nfs-mounted under it. I must have got them out of
27 > step at some stage.
28 >
29 > Incidentally, apache is wrong to complain of syntax errors - they're errors
30 > of configuration, not syntax.
31
32 Try recompiling php.
33 You may have accidentally removed the php-library as that is located under:
34 /usr/lib/apache2/modules/...
35
36 --
37 Joost

Replies

Subject Author
Re: [gentoo-user] Setting up a local web server Peter Humphrey <peter@××××××××××××××.org>