files saving owner/group permissions 99 99
Hi There,
I'm unsure as to why image files I'm saving through Zencart (creating new product and uploading image) are saving with owner/group permissions as 99 99 ?
Has my webhost done something to the server?
If I connect via FTP I can't edit permissions. I have to delete an image for example then transfer it and permissions are normal again.
So FTP works fine... zencart not working fine.
Getting an internal 500 error on a page (I think because of this).. have requested log file from webhost.
Re: files saving owner/group permissions 99 99
Here is my error log:
[17-Nov-2011 04:27:53] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open '/xxxx/mywebsite/public_html/bmz_cache/e/e4a8c6344bbc62ffb0ed16f52cebf2d1.image.180x120.jpg' for writing: Permission denied in /xxxx/mywebsite/public_html/includes/classes/bmz_image_handler.class.php on line 654
[17-Nov-2011 04:27:53] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open '/xxxx/mywebsite/public_html/bmz_cache/2/235519a3d2df3c319aeb61bc63b300d0.image.160x120.jpg' for writing: Permission denied in /xxxx/mywebsite/public_html/includes/classes/bmz_image_handler.class.php on line 654
Re: files saving owner/group permissions 99 99
That'll be because the files are getting ownership based on the Apache user since it's Apache/PHP that's creating the files. And, since your FTP account logs in as a different user, it can't alter the files owned by another user.
Your hosting company can configure things to work differently, if it suits their overall server permissions scheme. They might not be willing to alter it for just "you" though.
You need to address all those issues with them directly.
Re: files saving owner/group permissions 99 99
Fixed.
Thanks had a typo - in one of image names, causing the 500 error.
Re: files saving owner/group permissions 99 99
Quote:
Originally Posted by
DrByte
That'll be because the files are getting ownership based on the Apache user since it's Apache/PHP that's creating the files. And, since your FTP account logs in as a different user, it can't alter the files owned by another user.
Your hosting company can configure things to work differently, if it suits their overall server permissions scheme. They might not be willing to alter it for just "you" though.
You need to address all those issues with them directly.
Thanks Dr Byte.
That makes a bit more sense.
Issue is my files have server permissions of 32455 32457. After looking into it seems after a particular date they began saving as 99 99.
The server was hacked some time ago and the server admin changed permissions of files at the time or the hacker to 99 99. Had to have them amend this.
Will see what the response is from them.