[suPHP] Fw: Fw: Help configuring
mysql.jorge at decimal.pt
mysql.jorge at decimal.pt
Sun Dec 24 16:25:40 CET 2006
Hum...
I thought that this would work, to have the files uploaded to be created with the uid/gid i specified in the virtualhost suphp config.
How can i confirm that?
The creator of suPHP, Sebastian, can you help?
Jorge
On Sun, 24 Dec 2006 06:30:10 -0800, Jeremy Chadwick <suphp at jdc.parodius.com> wrote:
> I'm not sure that HTTP uploading works via suphp.
>
> --
> | Jeremy Chadwick jdc at parodius.com |
> | Parodius Networking http://www.parodius.com/ |
> | UNIX Systems Administrator Mountain View, CA, USA |
> | Making life hard for others since 1977. PGP: 4BD6C0CB |
>
> On Sun, Dec 24, 2006 at 02:03:39PM -0000, Jorge Bastos wrote:
>> Hum, Ok done but, now diferent behavior.
>>
>> ---
>> suPHP_UserGroup 5028 4901
>> ---
>>
>> No error on suphp log's.
>> But, on apache error log:
>> ---
>> [Sun Dec 24 14:00:09 2006] [error] [client XXX] terminate called after
>> throwing an instance of 'suPHP::LookupException', referer:
>> http://albergaria.org/up.html
>> [Sun Dec 24 14:00:09 2006] [error] [client XXX] Premature end of script
>> headers: uploader.php, referer: http://albergaria.org/up.html
>> ---
>>
>>
>>
>> below i show the content of each file:
>>
>> up.html
>>
>> <form enctype="multipart/form-data" action="uploader.php" method="POST">
>> <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
>> Choose a file to upload: <input name="uploadedfile" type="file" /><br />
>> <input type="submit" value="Upload File" />
>> </form>
>>
>> uploader.php
>>
>> <?
>> $target_path = "up/";
>>
>> $target_path = $target_path . basename(
> $_FILES['uploadedfile']['name']);
>>
>> if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
> $target_path)) {
>> echo "The file ". basename( $_FILES['uploadedfile']['name']).
>> " has been uploaded";
>> } else{
>> echo "There was an error uploading the file, please try
> again!";
>> }
>> ?>
>>
>>
>> And i get a 500 internal error on the browser.
>> What more i need to change?
>>
>> Jorge
>>
>>
>>
>> ----- Original Message -----
>> From: "Markus Kentgen" <markus_kentgen at web.de>
>> To: "Jorge Bastos" <mysql.jorge at decimal.pt>
>> Sent: Sunday, December 24, 2006 1:57 PM
>> Subject: Re: [suPHP] Fw: Fw: Help configuring
>>
>>
>> > Yes, the owner of the file is 5058 but suphp tries to run the file as
> user
>> > 5028 and this down't work so you have to set suPHP_UserGroup 5058
> 4901
>> >
>> >
>> > Jorge Bastos wrote:
>> >> Hum But the file is owner by that user (UID)
>> >>
>> >> Mismatch between target UID (5028) and UID (5058) of file
>> >> "/home/alojamento/albergaria.org/uploader.php"
>> >>
>> >> -rwxr-xr-x 1 5058 4901 365 Dec 23 23:58
>> >> /home/alojamento/albergaria.org/uploader.php*
>> >>
>> >> I'm getting crazy!! they are the same...
>> >> Now what?
>> >>
>> >>
>> >> Jorge
>> >>
>> >>
>> >>
>> >
>>
>>
>> _______________________________________________
>> suPHP mailing list
>> suPHP at lists.marsching.biz
>> http://lists.marsching.biz/mailman/listinfo/suphp
More information about the suPHP
mailing list