On Tue, Jun 11, 2013 at 03:38:30PM +0200, gg1 wrote:
> Hi Sonny,
> now I think the problem is in the /tmp/ directory.
> 
> 2013/6/11 Sonny Karlsson <[email protected]>
> 
> >
> > This script works fine for me with this setup, I get the File uploaded
> > message both from firefox and safari.
> > If you're still having problems uploading files then check your
> > permissions and your php configuration (mine is not modified at all).
> > Specifically make sure that php-fpm has write permissions in the
> > directory.
> >
> > --
> > Sonny Karlsson
> >
> 
> 
> As you have seen, I'm using the pi user directory to store the htdocs/ one,
> what permissions must the directory have?
> $ls -al /home/pi/monkey-1.2.1/htdocs/
> drwxrwxrwt  4 pi   pi   4096 Jun 10 18:24 .
> drwxrwxrwt  4 pi   pi   4096 Jun 10 18:24 .
> drwxrwxrwt  2 pi   pi   4096 Jun 10 18:10 c2
> drwxrwxrwt  2 pi   pi   4096 Jun 10 18:10 other
> pi@raspberrypi /tmp $
> 
> is that correct?
> 
> Anyway this night I'm going to configure monkey so it can use the /var/www
> directory, since apache works fine but uses this dir.
> Gg

With the permisions you have, this should work fine.

Monkey needs read permission on the php script for it to call any
plugins.
php-fpm runs as another user (www-data) by default, which must be able
to read the file and write results.
You can change which user php-fpm is run as in its pool configuration.

But anyway, try out using the /var/www directory and run monkey with the
same user/group as apache, that should definitely work.

Good luck!

> _______________________________________________
> Monkey mailing list
> [email protected]
> http://lists.monkey-project.com/listinfo/monkey


-- 
Sonny Karlsson
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to