Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User

Apache + mod_suphp

 

 

Gentoo user RSS feed   Index | Next | Previous | View Threaded


carlos.sura1 at googlemail

May 1, 2012, 9:58 PM

Post #1 of 7 (471 views)
Permalink
Apache + mod_suphp

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


gentoo-user at hadt

May 2, 2012, 4:35 AM

Post #2 of 7 (454 views)
Permalink
Re: Apache + mod_suphp [In reply to]

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?


realnc at gmail

May 2, 2012, 5:59 AM

Post #3 of 7 (451 views)
Permalink
Re: Apache + mod_suphp [In reply to]

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?


carlos.sura1 at googlemail

May 2, 2012, 10:42 AM

Post #4 of 7 (453 views)
Permalink
Re: Apache + mod_suphp [In reply to]

On 2 May 2012 05:35, Michael Hampicke <gentoo-user [at] hadt> 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


carlos.sura1 at googlemail

May 2, 2012, 10:43 AM

Post #5 of 7 (457 views)
Permalink
Re: Re: Apache + mod_suphp [In reply to]

On 2 May 2012 06:59, Nikos Chantziaras <realnc [at] gmail> 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


gentoo-user at hadt

May 2, 2012, 10:56 AM

Post #6 of 7 (454 views)
Permalink
Re: Apache + mod_suphp [In reply to]

Am 02.05.2012 19:42, schrieb Carlos Sura:
> On 2 May 2012 05:35, Michael Hampicke <gentoo-user [at] hadt> 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


gentoo-user at hadt

May 2, 2012, 11:02 AM

Post #7 of 7 (451 views)
Permalink
Re: Apache + mod_suphp [In reply to]

> 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

Gentoo user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.