Gentoo Archives: gentoo-user

From: Michael Hampicke <gentoo-user@××××.biz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache + mod_suphp
Date: Wed, 02 May 2012 17:58:25
Message-Id: 4FA17543.1090301@hadt.biz
In Reply to: Re: [gentoo-user] Apache + mod_suphp by Carlos Sura
1 Am 02.05.2012 19:42, schrieb Carlos Sura:
2 > On 2 May 2012 05:35, Michael Hampicke <gentoo-user@××××.biz> wrote:
3 >
4 >>
5 >>
6 >> Am 02.05.2012 06:58, schrieb Carlos Sura:
7 >>> I get the following error:
8 >>>
9 >>> Internal Server Error
10 >>>
11 >>> Mismatch between target UID (81) and UID (1000) of file
12 >>> "/home/username/public_html/anything/index.php"
13 >>
14 >> Have you tried turning of safe_mode in the php.ini file?
15 >>
16 >>
17 >
18 >
19 > safe_mode is off
20
21 Ok, good. Then it's a issue with mod_suphp. The php instance of your
22 users vhost in configured to run under userid 81 (which is guess is
23 apache or www-data) but the files under "/home/username/public_html/" ar
24 actually owned by userid 1000 (which would be your user).
25
26 So there are two solutions, one is practical, the other is not :)
27
28 Just configure mod_suphp for your users vhost to run under userid 1000.
29
30 You could also chown all files and dirs under
31 "/home/username/public_html/" to apache. But that's not really practical.
32
33 You just have to look up on how the change the uid, I don't know, as I
34 don't have any experience with mod_suphp

Replies

Subject Author
Re: [gentoo-user] Apache + mod_suphp Michael Hampicke <gentoo-user@××××.biz>