Jump to content

LAMPP permissions. AH!!


Recommended Posts

So I have been taking swings at this issue for like 3 days now and no matter what I try I can't get this to work.

All I'm trying to do is create a simple picture upload form. As far as i can tell my form and script work just fine but I'm stuck on these blasted permissions errors.

I've added myself to the www-data user group as suggested by another user.

LAMPP server, Ubuntu 11.04.

This is what happens when uploading...

 

-------------------------------------------------

 

Warning: move_uploaded_file(uploads/DSC00141.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6

 

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplgVvan' to 'uploads/DSC00141.JPG' in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6

There was an error uploading the file, please try again!

 

Array

(

    [image] => Array

        (

            [name] => DSC00141.JPG

            [type] => image/jpeg

            [tmp_name] => /tmp/phplgVvan

            [error] => 0

            => 520824

        )

 

)

 

 

----------------------------------------------------

Link to comment
https://forums.phpfreaks.com/topic/237652-lampp-permissions-ah/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.