WebP support in PHP packages provided by Plesk

Follow

Comments

68 comments

  • Avatar
    Paul Dunne

    Thanks Ivan, just came here now to see if there is any news as it is now end of Q1 and we have told our clients to expect an update in Q1 2020 as per the updates on this thread. Would appreciate confirmation on when this feature is coming to give our customers realistic expectations.

    0
    Comment actions Permalink
  • Avatar
    AmaZili (Edited )

    Thank you Ivan Postnikov.

    Hope you will comme back with : "next week !" as an answer

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello,

    According to the update I've received, this functionality has ETA changed.

    WebP is one of the focuses of RnD for Q2 2020.

    -4
    Comment actions Permalink
  • Avatar
    YS

    Hello Ivan,

    this is not acceptable. Our development team is ready with WebP because you gave us Q1 for the deployment. 

    Now another 3 months? For a a simple modification...? WebP is 10 years old! 

    1
    Comment actions Permalink
  • Avatar
    Paul Dunne

    Hello Ivan, this is a huge disappointment for our business and our clients. Up until today, we had been told the Plesk release would be in Q1. Can you clarify what 'one of the focuses of RnD' means? Is this a confirmed ETA for a Q2 Plesk release, or is it only being looked at for the first time in Q2?

    This is really holding back the websites we manage and penalizing our client rankings in Google compared to those sites who are able to use this technology. It would be great to have a better idea as to when this will actually be released, as we have been asking since October 2019.

    I would like to be able to set realistic expectations with my clients who were all expecting this feature to be available by the end of Q1 so I need to know what to say to them now.

    1
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @YS and Paul Dunne

    Thank you for the feedback.

    Indeed, initially, Q1 was in plans. However, another functionality and fixes took more resources when expected.

    > Is this a confirmed ETA for a Q2 Plesk release, or is it only being looked at for the first time in Q2?

    It was already checked and with high probability will be included in one of the Q2 updates.

    For now, that's the most precise information available.

    As soon as there'll be any news, the article will be updated.

    Thank you for understanding.

    0
    Comment actions Permalink
  • Avatar
    Betafer

    I thought paid software had better support than a free one (ISPConfig).

    Very bad !

    0
    Comment actions Permalink
  • Avatar
    AndrewTRV

    Very disappointing, so from Q1 to maybe Q2 or maybe not.

    2
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @AndrewTRV,

    > or maybe not.

    What I can say for sure is that support will definitely be added.

    RnD will do it's best co implement this functionality on time,

    -1
    Comment actions Permalink
  • Avatar
    Betafer

    Is it so difficult to implement?

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    Hi Betafer: You can follows this step-by-step guide https://support.plesk.com/hc/en-us/articles/115000497853 in order to accomplish this. Mind step 4 where you can configure the --with-webp-dir=/usr part.

    0
    Comment actions Permalink
  • Avatar
    Betafer

    HI Julian in the article:

     

    Warning: These steps are provided for demonstration purposes only and not supported by Plesk. Depending on your operating system and the desired configuration, installation steps can differ significantly. When you install an additional PHP version on your server, read the official PHP documentation on installation.

    0
    Comment actions Permalink
  • Avatar
    AmaZili (Edited )

    Betafer It is pretty simple, on centos 7.x for PHP 7.4 you can do the following :

    From the command line type...

    cd to/the/directory/where/you/want/to/prepare/the/installation

    yum install make gcc plesk-php74-devel libjpeg-turbo-devel libpng-devel libXpm-devel freetype-devel libwebp-devel

    wget http://be2.php.net/get/php-7.4.3.tar.gz/from/this/mirror

    tar -xzf mirror

    cd php-7.4.3/ext/gd

     /opt/plesk/php/7.4/bin/phpize

     ./configure --with-php-config=/opt/plesk/php/7.4/bin/php-config --with-webp --with-freetype --with-jpeg --with-xpm

     make

     mv /opt/plesk/php/7.4/lib64/php/modules/gd.so /opt/plesk/php/7.4/lib64/php/modules/gd.so_orig

     cp modules/gd.so /opt/plesk/php/7.4/lib64/php/modules/

     plesk bin php_handler --reread

     /opt/plesk/php/7.4/bin/php -m | grep gd

     rpm -e --justdb plesk-php74-gd

    Then it should work ....

    1
    Comment actions Permalink
  • 0
    Comment actions Permalink
  • Avatar
    Semaf Electronics

    Quite interesting reply from Plesk with the workaround that you JUST need corresponding configure flag (--with-webp-dir=/usr) to compile but takes month to implement by themself :)

    1
    Comment actions Permalink
  • Avatar
    Ekaterina Babenko

    Hello Betafer,

    Yes, the article contains such notice to warn you that these steps should be performed with caution as these are not supported by Plesk 

    0
    Comment actions Permalink
  • Avatar
    Ekaterina Babenko

    Hello Robert,

    Currently AVIF and HEIC are not supported. You can submit feature request to our development team by following the link:
    https://plesk.uservoice.com/forums/184549-feature-suggestions

    Please, feel free to share your opinion in comment section. 

    0
    Comment actions Permalink
  • Avatar
    Ekaterina Babenko

    Semaf Electronics,

    Indeed we do provide only the example steps not the direct instructions because they are not supported by Plesk but do contain the delicate procedure. 

    0
    Comment actions Permalink
  • Avatar
    Betafer

    Thanks AmaZili for PHP 7.2 it's the same ?

    0
    Comment actions Permalink
  • Avatar
    AmaZili (Edited )

    Betafer,

    Change 7.4 with whatever 7.x version you need : 7.1, 7.2 or 7.3

     /!\    AND use this line to configue :

    ./configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-webp-dir=/usr/include/webp --with-freetype-dir=/usr/include/freetype2/freetype --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-xpm-dir=/usr/include



    It should works fine
    0
    Comment actions Permalink
  • Avatar
    Betafer

    Thank you AmaZili, but i notic now that the guide is for CentOS we use Debian 9

    0
    Comment actions Permalink
  • Avatar
    maofree (Edited )

    Hi AmaZili

    I'm helping Betafer to install a custom php

    I need to be sure about the steps to follow

    at this momento on the plesk are installed php 7.2.28 into /opt/plesk/php/7.2/ and 7.3.15 into /opt/plesk/php/7.3/ so I want to install php 7.2.29 with webp support on debian 9

    1) can you tell me which packages are necessary to be installed before to start?

    plesk-php72-dev

    libxml2-dev

    libpng-dev

    libxpm-dev

    freetype-dev  is not present in apt-cache search freetype-dev       (is it libxft-dev?)

    libwebp-dev

     

    2) 

    this steps is clear

    wget https://www.php.net/distributions/php-7.2.29.tar.gz

    tar -xzf php-7.2.29.tar.gz

    cd php-7.2.29/

    ./configure --with-php-config=/opt/plesk/php/7.2.29/bin/php-config --with-webp --with-freetype --with-jpeg --with-xpm

     make

     

    3)

    is it not necessary to use:?

    make install

     

    4)

    mv /opt/plesk/php/7.2.29/lib64/php/modules/gd.so /opt/plesk/php/7.2.29/lib64/php/modules/gd.so_orig

    cp modules/gd.so /opt/plesk/php/7.2.29/lib64/php/modules/

    plesk bin php_handler --reread

    /opt/plesk/php/7.2.29/bin/php -m | grep gd

     

    similar 4)

    make install

    /usr/local/psa/bin/php_handler --add -displayname <NN> -path <path to php cgi> -phpini <path to php.ini> -type <php handler> -id <NN-custom> -clipath <path to php cli>

    why here is used another commands?

    https://support.plesk.com/hc/en-us/articles/115000497853

     

    5)

     rpm -e --justdb plesk-php74-gd

     

    can you translate this comand for debian?

     

    sorry if I ask you some infos, but I need to be sure before proceeding

    I'll wait your infos

    thanks

    0
    Comment actions Permalink
  • Avatar
    AmaZili

    Hi Betafer and maofree,

    I am sorry, but I can't help with Debian since we don't use this flavor on our servers.

    It should be similar but not absolutly the same since those are quite different.

    May be you could refer to the original sources at Debian to find help with it.

    Sorry for not being more helpfull.

    0
    Comment actions Permalink
  • Avatar
    Betafer

    Thank you !

    0
    Comment actions Permalink
  • Avatar
    Betafer

    Hi Amazill, 

    done, but the change lasted 2 days, until the automatic update of php
    by plesk.

    If the question is keep plesk update or use webp?

    0
    Comment actions Permalink
  • Avatar
    Francisco Garcia

    Hi Betafer,

    Have you build a new PHP and added it to Plesk, or have you added the compiled module to existing Plesk's PHP?

    If it's the 1st, it should last with Plesk updates, but if it's the 2nd... it might be possible that any customization may disappear on Plesk updates.

    Could you please provide more info?

    0
    Comment actions Permalink
  • Avatar
    AmaZili

    Francisco Garcia you can do the following :

    Start over the whole porcess.

    When its done do :

    cp modules/gd.so /opt/plesk/php/7.x/mymodules (you created the directory mymodule before)

    Then in the plesk web interface, go to tools and settings / php settings.

    Choose the php you want to modify (should be the same 7.X version)

    at the end of php.ini add the line :

    extension=/opt/plesk/php/7.x/mymodules/gd.so

    This is a bit unconventional, and you should make tests before going to production.

    Make sure you update the all process frequently enougth to avoid potential problems with php version becoming incompatible

     

    0
    Comment actions Permalink
  • Avatar
    Francisco Garcia

    Hi AmaZili,

    Say no more :), I've read the next and then I have everything clear:

    at the end of php.ini add the line :

    extension=/opt/plesk/php/7.x/mymodules/gd.so

    In this case then I suspect the changes you've made in php.ini have been reverted.

    Instead of that, I suggest you to create a new ini file in /opt/plesk/php/7.x/etc/php.d/, for example gd.ini with the enablement of such module.

    That for sure has to last longer than updating the php.ini.

    1
    Comment actions Permalink
  • Avatar
    AmaZili

    Francisco Garcia Nice advise !

    This should really lasts longer, even if the php.ini change lasts for weeks now, it is not a long term solution.

    0
    Comment actions Permalink
  • Avatar
    Robert

    I really hope for an officially supported by plesk soon as this post is growing longer weekly.

    Last communication  ETA was Q2/2020, so lets hope it wont change again like end of Q1/2020. 

    My new website will go life soon to replace my old https//www.asset-trade.de

    I really need this webP support to get all the benifites of modern Image compression to get ranked better in todays Used Machinery market..

    Google explicitly favors fast websites over slow ones in their search rankings and webP will really help here.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request