ispCP - Board - Support
PHP uploads are not readable - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: PHP uploads are not readable (/thread-1710.html)

Pages: 1 2


PHP uploads are not readable - Eminos - 11-03-2007 10:48 PM

Hi there,

I would really need this one to be fixed, maybe some pro could take a look at it ? Customers are complaining Sad

http://www.isp-control.net/ispcp/ticket/764

Thanks in advance.

/E


RE: PHP uploads are not readable - rbtux - 11-03-2007 11:25 PM

can you try to set the upload_tmp_dir to:

upload_tmp_dir = "N;0644;/path/to/tmp"

this works with the session save path. maybe it also works with upload tmp dir...


RE: PHP uploads are not readable - joximu - 11-03-2007 11:57 PM

Hi Eminos

Maybe you should look for a solution.
I just did some tests:
with mod_php the mode of an uploaded file is 0600
with fastcgi the same - but the user/owner is another one.

I didn't see any way to change the default mode to something else.
Maybe it's rather a good idea to check the applications which do not check/correct the permissions of uploaded files...

/J


RE: PHP uploads are not readable - Eminos - 11-03-2007 11:59 PM

joximu Wrote:with mod_php the mode of an uploaded file is 0600
with fastcgi the same - but the user/owner is another one.

Yes, but isn't that wrong? It should be 644 right ?
Coz this used to work with older versions of ISPCP.

/E


RE: PHP uploads are not readable - Eminos - 11-04-2007 12:06 AM

rbtux Wrote:can you try to set the upload_tmp_dir to:

upload_tmp_dir = "N;0644;/path/to/tmp"

this works with the session save path. maybe it also works with upload tmp dir...

I'm using Joomla when uploading, but I guess it's similar with other scripts.

The uploaded file gets 0600 permissions and is not readable by the apache.

I added the N;0644; in php.ini but now I get a Upload FAILED instead Sad

/E


RE: PHP uploads are not readable - rbtux - 11-04-2007 12:09 AM

well then tis works only for the session save path... what a pity^^


RE: PHP uploads are not readable - joximu - 11-04-2007 03:57 AM

Eminos Wrote:
joximu Wrote:with mod_php the mode of an uploaded file is 0600
with fastcgi the same - but the user/owner is another one.

Yes, but isn't that wrong? It should be 644 right ?
Coz this used to work with older versions of ISPCP.

/E

it's 0600 with mod_php (on my suse server) - so this seems to me as a default.

Which version of ispcp worked for you?

/J


RE: PHP uploads are not readable - Eminos - 11-04-2007 04:07 AM

joximu Wrote:Which version of ispcp worked for you?

Hmm, I think RC2c or some nightly before that. I'm not sure tho.
But I know that me (and my customers) didn't have this problem when uploading pictures with Joomla.
I'm now using a month old nightly.

/E


RE: PHP uploads are not readable - joximu - 11-04-2007 10:36 AM

Well, it would help alot if we could locate the differences in the php settings from then to now.


RE: PHP uploads are not readable - Eminos - 11-04-2007 11:49 AM

Tell me how I could help. I don't have the old server installation anymore.

/E