public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Apache + mod_suphp
@ 2012-05-02  4:58 Carlos Sura
  2012-05-02 11:35 ` Michael Hampicke
  2012-05-02 12:59 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 2 replies; 7+ messages in thread
From: Carlos Sura @ 2012-05-02  4:58 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

Hello Mates,

Quick question:

I've installed apache + mod_suphp (I am using on apache configuration:
USERDIR), so, when I go to the path: http://localhost/~username/anything

I get the following error:

Internal Server Error

Mismatch between target UID (81) and UID (1000) of file
"/home/username/public_html/anything/index.php"
------------------------------
suPHP 0.7.1


The only thing I changed after installing mod_suphp was:

/etc/suphp.conf

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false


I set to FALSE, because I am using: USERDIR (as I said before)

Any help would be appreciated.

Thank you!
-- 
Carlos Sura.-
www.carlossura.com

[-- Attachment #2: Type: text/html, Size: 1357 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Apache + mod_suphp
  2012-05-02  4:58 [gentoo-user] Apache + mod_suphp Carlos Sura
@ 2012-05-02 11:35 ` Michael Hampicke
  2012-05-02 17:42   ` Carlos Sura
  2012-05-02 12:59 ` [gentoo-user] " Nikos Chantziaras
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Hampicke @ 2012-05-02 11:35 UTC (permalink / raw
  To: gentoo-user



Am 02.05.2012 06:58, schrieb Carlos Sura:
> I get the following error:
> 
> Internal Server Error
> 
> Mismatch between target UID (81) and UID (1000) of file
> "/home/username/public_html/anything/index.php"

Have you tried turning of safe_mode in the php.ini file?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] Re: Apache + mod_suphp
  2012-05-02  4:58 [gentoo-user] Apache + mod_suphp Carlos Sura
  2012-05-02 11:35 ` Michael Hampicke
@ 2012-05-02 12:59 ` Nikos Chantziaras
  2012-05-02 17:43   ` Carlos Sura
  1 sibling, 1 reply; 7+ messages in thread
From: Nikos Chantziaras @ 2012-05-02 12:59 UTC (permalink / raw
  To: gentoo-user

On 02/05/12 07:58, Carlos Sura wrote:
> Hello Mates,
>
> Quick question:
>
> I've installed apache + mod_suphp (I am using on apache configuration:
> USERDIR), so, when I go to the path: http://localhost/~username/anything
>
> I get the following error:
>
>
>   Internal Server Error
>
> Mismatch between target UID (81) and UID (1000) of file
> "/home/username/public_html/anything/index.php"

Take a look at the suphp log file in /var/log.  Does it say anything?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Apache + mod_suphp
  2012-05-02 11:35 ` Michael Hampicke
@ 2012-05-02 17:42   ` Carlos Sura
  2012-05-02 17:56     ` Michael Hampicke
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Sura @ 2012-05-02 17:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

On 2 May 2012 05:35, Michael Hampicke <gentoo-user@hadt.biz> wrote:

>
>
> Am 02.05.2012 06:58, schrieb Carlos Sura:
> > I get the following error:
> >
> > Internal Server Error
> >
> > Mismatch between target UID (81) and UID (1000) of file
> > "/home/username/public_html/anything/index.php"
>
> Have you tried turning of safe_mode in the php.ini file?
>
>


safe_mode is off
-- 
Carlos Sura.-
www.carlossura.com

[-- Attachment #2: Type: text/html, Size: 855 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: Apache + mod_suphp
  2012-05-02 12:59 ` [gentoo-user] " Nikos Chantziaras
@ 2012-05-02 17:43   ` Carlos Sura
  0 siblings, 0 replies; 7+ messages in thread
From: Carlos Sura @ 2012-05-02 17:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 818 bytes --]

On 2 May 2012 06:59, Nikos Chantziaras <realnc@gmail.com> wrote:

> On 02/05/12 07:58, Carlos Sura wrote:
>
>> Hello Mates,
>>
>> Quick question:
>>
>> I've installed apache + mod_suphp (I am using on apache configuration:
>> USERDIR), so, when I go to the path: http://localhost/~username/**
>> anything <http://localhost/~username/anything>
>>
>> I get the following error:
>>
>>
>>  Internal Server Error
>>
>> Mismatch between target UID (81) and UID (1000) of file
>> "/home/username/public_html/**anything/index.php"
>>
>
> Take a look at the suphp log file in /var/log.  Does it say anything?
>
>
>

 tail /var/log/apache2/suphp_log
[Tue May 01 22:44:05 2012] [warn] Mismatch between target UID (81) and UID
(1000) of file "/home/username/public_html/directory/index.php"


-- 
Carlos Sura.-
www.carlossura.com

[-- Attachment #2: Type: text/html, Size: 1425 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Apache + mod_suphp
  2012-05-02 17:42   ` Carlos Sura
@ 2012-05-02 17:56     ` Michael Hampicke
  2012-05-02 18:02       ` Michael Hampicke
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Hampicke @ 2012-05-02 17:56 UTC (permalink / raw
  To: gentoo-user



Am 02.05.2012 19:42, schrieb Carlos Sura:
> On 2 May 2012 05:35, Michael Hampicke <gentoo-user@hadt.biz> wrote:
> 
>>
>>
>> Am 02.05.2012 06:58, schrieb Carlos Sura:
>>> I get the following error:
>>>
>>> Internal Server Error
>>>
>>> Mismatch between target UID (81) and UID (1000) of file
>>> "/home/username/public_html/anything/index.php"
>>
>> Have you tried turning of safe_mode in the php.ini file?
>>
>>
> 
> 
> safe_mode is off

Ok, good. Then it's a issue with mod_suphp. The php instance of your
users vhost in configured to run under userid 81 (which is guess is
apache or www-data) but the files under "/home/username/public_html/" ar
actually owned by userid 1000 (which would be your user).

So there are two solutions, one is practical, the other is not :)

Just configure mod_suphp for your users vhost to run under userid 1000.

You could also chown all files and dirs under
"/home/username/public_html/" to apache. But that's not really practical.

You just have to look up on how the change the uid, I don't know, as I
don't have any experience with mod_suphp



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Apache + mod_suphp
  2012-05-02 17:56     ` Michael Hampicke
@ 2012-05-02 18:02       ` Michael Hampicke
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Hampicke @ 2012-05-02 18:02 UTC (permalink / raw
  To: gentoo-user

> You just have to look up on how the change the uid, I don't know, as I
> don't have any experience with mod_suphp
Just looked it up. The directive is suPHP_UserGroup



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-02 18:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-02  4:58 [gentoo-user] Apache + mod_suphp Carlos Sura
2012-05-02 11:35 ` Michael Hampicke
2012-05-02 17:42   ` Carlos Sura
2012-05-02 17:56     ` Michael Hampicke
2012-05-02 18:02       ` Michael Hampicke
2012-05-02 12:59 ` [gentoo-user] " Nikos Chantziaras
2012-05-02 17:43   ` Carlos Sura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox