[suPHP] Using suPHP with non real system users

Damien Varron diams99 at yahoo.fr
Tue May 20 02:43:52 CEST 2008


Wow, I didn't expect an answer so fast ! Thanks anyway !

Sorry, I meant to put the log file and forgot it ;

apache2/error.log says :

[Tue May 20 02:14:18 2008] [error] [client 75.72.199.x] terminate called 
after throwing an instance of 'suPHP::LookupException', referer: 
http://mail.google.com/mail/?ui=2&view=bsp&ver=ymdfwq781tpu
[Tue May 20 02:14:18 2008] [error] [client 75.72.199.x] Premature end of 
script headers: info.php, referer: 
http://mail.google.com/mail/?ui=2&view=bsp&ver=ymdfwq781tpu

(I assume that's you ;-)

and suphp/suphp.log says, ... well, it says nothing actually !!! only things 
like :
[Tue May 20 01:31:41 2008] [info] Executing "/var/www/info.php" as UID 1000, 
GID 65534
when it works, where 1000 is dvarron and 65534 is nogroup. Which makes me 
realise that the first link I gave you doesn't work anymore. Which is now 
easily fixed by adding suPHP_UserGroup dvarron nogroup into the main vhost.
You can go back and check http://black.assoces.com/info.php if you wish. By 
the way, I don't mind adding the #uid and #gid for each site in the vhost, 
but I wish I could go on using suphp with non real users (did I already 
mentionned it ? uh, sorry...)

About the owner, well, /home/httpd/assoces.com/listesbde/2006-2007/ should 
be owned by root and everything inside ricarembar including itself should be 
owned by 2135:33 (how doesn't exist for real as I said before).
Like that :

root at black:/tmp/suphp-0.6.3# ls -l /home/httpd/assoces.com/
total 4
drwxr-xr-x 17 root root 4096 2008-05-18 14:13 listesbde

root at black:/tmp/suphp-0.6.3# ls -l /home/httpd/assoces.com/listesbde/
total 60
drwxr-xr-x 8 root root 4096 2008-05-18 14:06 2004-2005
drwxr-xr-x 5 root root 4096 2008-05-18 14:07 2005-2006
drwxr-xr-x 4 root root 4096 2008-05-18 14:08 2006-2007
drwxr-xr-x 6 root root 4096 2008-05-18 14:08 2007-2008

root at black:/tmp/suphp-0.6.3# ls -l 
/home/httpd/assoces.com/listesbde/2006-2007/
total 8
drwxr-xr-x 3 root root     4096 2008-05-18 14:08 chipsndalle
drwxr-xr-x 3 2135 www-data 4096 2008-05-17 19:29 ricarembar

Hope this helps...
damien

ps: am I supposed to answer to you directly and/or only to the mailing list 
?

----- Original Message ----- 
From: "Brock Noland" <brockn at gmail.com>
To: "Damien Varron" <diams99 at yahoo.fr>
Cc: <suphp at lists.marsching.biz>
Sent: Tuesday, May 20, 2008 2:18 AM
Subject: Re: [suPHP] Using suPHP with non real system users


> On Mon, May 19, 2008 at 7:10 PM, Damien Varron <diams99 at yahoo.fr> wrote:
>> You can see two examples :
>> http://black.assoces.com/info.php running fine, with no particular 
>> settings,
>> currently paranoid mode, default vhost, file owned by dvarron:www-data
>> and
>> http://ricarembar.assoces.com/info.php giving the 500 error, with 
>> following
>> vhost :
>
> What is the error in suphp.log? I assume a mismatch error but It would
> be great to see the log message.
>
>>
>> <VirtualHost *>
>>   ServerName ricarembar.assoces.com
>>         suPHP_Engine on
>>         suPHP_UserGroup #2135 #33
>>         suPHP_ConfigPath /etc/php5/cgi
>>         AddHandler x-httpd-php .php .php3 .php4 .php5
>>         DocumentRoot
>> /home/httpd/assoces.com/listesbde/2006-2007/ricarembar/html
>> </VirtualHost>
>> and accordingly chowned by 2135:33 along with the hole directory and 
>> parent
>> directory.
>
> What is the ownership of the entire directory structure?
>
> /home/httpd/assoces.com/listesbde/2006-2007/ricarembar/html
>
>> Don't know what to add and hope for your answers.
>> Thanks in advance.
>> (and please excuse my english, I'm french, yup, no one's perfect...)
>
> Don't worry about the English. As a native speaker...Its a hack of a
> language anyway.
>
> Brock 




More information about the suPHP mailing list