• Resolved fylh

    (@fylh)


    My host told me that server logs have plenty of:

    /var/www/fylhtyzia2/data/www/vickyblog.com/wp-content/ewww/jpegtran: can’t open

    My plugin page status is as follows:

    Plugin Status

    If updated versions are available below, you may need to enable write permission on the /var/www/fylhtyzia2/data/www/vickyblog.com/wp-content/ewww/ folder to use the automatic installs.
    *Updates are optional, but may contain increased optimization or security patches

    jpegtran: OK version: Independent JPEG Group’s JPEGTRAN, version 9 13-Jan-2013
    optipng: OK version: OptiPNG version 0.7.4
    gifsicle: OK version: LCDF Gifsicle 1.78
    Graphics libraries – only need one, used for conversion, not optimization: GD: OK   Imagemagick ‘convert’: MISSING
    safe mode: Off  exec(): OK  
    Only need one of these: finfo: OK  getimagesize(): OK  mime_content_type(): OK

    Please help.

    https://wordpress.org/plugins/ewww-image-optimizer/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Please turn on debugging on the settings page for EWWW, paste it on pastebin.com, and post a link here.

    Thread Starter fylh

    (@fylh)

    Dear nosilver4you,

    Thanks for prompt reply. First of all the error is as follows:

    “/var/www/fylhtyzia2/data/www/vickyblog.com/wp-content/ewww/jpegtran: can’t open /var/www/fylhtyzia2/data/www/vickyblog.com/wp-content/blogs.dir/10/files/2014/02/1-300×300.jpg for reading”

    Secondly, I have got strange bug with file permissions. I have network WordPress. My blogs are, for example:

    wp-content/blogs.dir/5/files/2010/…
    wp-content/blogs.dir/5/files/2011/…
    wp-content/blogs.dir/5/files/2012/…
    etc.

    Initially all the files and folders of my wordpress installation where owned by my FTP user:

    group-owner: fylhtyzia2
    owner: fylhtyzia2

    Following your installation instructions I made changes:

    1. All the folders in wp-content/ directory set 775 permissions recursively:

    group-owner: www-data
    owner: fylhtyzia2

    2. All the files in wp-content/ directory let unchanged with 644 permissions:

    group-owner: fylhtyzia2
    owner: fylhtyzia2

    3. I started Bulk Optimize for all images in blog No.5
    4. Most of the files were optimized perfectly, for example:

    wp-content/blogs.dir/5/files/2013/ 2012/ 2011/ 2010

    but some files in some monthes of 2010/ folder were not optimized with the error:

    /var/www/fylhtyzia2/data/www/vickyblog.com/wp-content/blogs.dir/5/files/2011/10/Bfw_designers12.png is not writable

    Debug info about this file
    Debug info in general

    I could cope with it only by setting all the files in wp-content/blogs.dir/5/files/2011/10/ directory with 664 permissions:

    group-owner: www-data
    owner: www-data

    But it’s not right, I gess. Please help.

    Plugin Author nosilver4u

    (@nosilver4u)

    I can’t view private pastebin posts, sorry. Please make them public.
    Also, are you on shared hosting? I strongly suspect that www-data is not the right owner for your files. That is generally the default only for webservers that host one website. Servers setup for multiple users generally have a user for each web-accessible folder, so fylhtyzia2 is probably the correct ownership. Permissions should generally be 755 by default.

    Thread Starter fylh

    (@fylh)

    Dear nosilver4u, I’ve made pastebin links public for you. Please check.
    I am on VPS, I double checked that my php is working as www-data. With 755 permissions I’d got error “file is not writable”, that’s why I’ve made it 775.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, try this on just the image you mentioned:
    Set the owner to user fylhtyzia2 and group fylhtyzia2. Change the file permissions to 644, optimize just that one image, and see what happens.

    It is also worth noting that directories must be executable by the proper user, so that might be causing issues elsewhere too. As for jpegtran, it looks like everything is operating normally now, at least as far as I can tell from the status information and the debug info.

    Otherwise, according to your debug information, the web user is fylhtyzia2, not www-data, so I’m pretty confident in saying that the fylhtyzia2 user needs to own and have permissions on all files on your website. You can double-check that with your webhost if you’re not sure. If they can’t tell you, find a new webhost, quick.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘jpegtran: can't open’ is closed to new replies.