Page 1 of 1

Hi,My we

Posted: 20 May 2008, 00:04
by klaas
Hi,

My webserver/provider runs apache as user klaasholwerdnl.
And therefore all files created in joomla become that user.
But Phoca Gallery wants to create files as apache user and group the thumbnails.
And there for i need to 777 on the thumbs directory to make it work.
That is not how it should be
Using the media manager etc. works oke, its only Phoca which does this.

So why does this happen, and can i set it somewhere.

-rw-r--r-- 1 klaasholwerdnl psacln 47 May 18 15:29 index.html -rw-r--r-- 1 apache apache 189612 May 19 23:38 phoca_thumb_l_maskproc.png -rw-r--r-- 1 apache apache 10942 May 19 23:38 phoca_thumb_m_maskproc.png -rw-r--r-- 1 apache apache 3398 May 19 23:38 phoca_thumb_s_maskproc.png

Images are saved int

Posted: 20 May 2008, 16:18
by Jan
Images are saved into the gallery by GD function, not by Phoca Gallery, the 777 is set only for creating the folder (thumbs)

But then why does GD

Posted: 21 May 2008, 23:40
by klaas
But then why does GD produce images as user apache? I think i will search a php script which used GD to generate an image, and see what user it uses. In Unix it rather strange that whatever executable is run, it produces files with a different user and group as the user running the executable in the first place.
And since the php script and apache is run as account klaasholwerdnl, the files should become that user, and not apache.

I don't get it, will investigate further.

Thanks!

But then why doe

Posted: 22 May 2008, 13:21
by Jan
But then why does GD produce images as user apache? - ???

It is not GD on my s

Posted: 23 May 2008, 22:24
by klaas
It is not GD on my server, every file created with php is user apache group apache.

<?php

$handle = fopen("somefile.txt", "w");
fwrite ( $handle , "i don't understand" );
?>

And i did not find a solution yet like suggested several in:

http://www.directadmin.com/forum/archiv ... -6084.html

the problem is that httpd is running as apache, and so its php scripts, to bad i can't use the next:

http://www.suphp.org/Home.html

...

Posted: 23 May 2008, 22:36
by Jan