Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default 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.
    That wasn't the plan!

  2. #2
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default 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
    That wasn't the plan!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: files saving owner/group permissions 99 99

    Fixed.

    Thanks had a typo - in one of image names, causing the 500 error.
    That wasn't the plan!

  5. #5
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: files saving owner/group permissions 99 99

    Quote Originally Posted by DrByte View Post
    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.
    That wasn't the plan!

 

 

Similar Threads

  1. v150 problem importing (or saving locally) csv files
    By eternity575 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 15 Apr 2012, 06:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR