Plesk for Windows
Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
Do Plesk PHP packages have WebP support?
Answer
The GD library shipped with Plesk PHP 7.2 and higher supports WebP starting from Plesk Obsidian 18.0.27.
Update Plesk to the latest version to get this feature.
For older Plesk version, use the instructions from the following Plesk Forum page to compile GD module with WebP support:
Comments
75 comments
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.
Thank you Ivan Postnikov.
Hope you will comme back with : "next week !" as an answer
Hello,
According to the update I've received, this functionality has ETA changed.
WebP is one of the focuses of RnD for Q2 2020.
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!
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.
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.
I thought paid software had better support than a free one (ISPConfig).
Very bad !
Very disappointing, so from Q1 to maybe Q2 or maybe not.
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,
Is it so difficult to implement?
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.
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.
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 ....
@Plesk what about other Support of MODERN Image Formats like AVIF or HEIC ??
Here a quick compareison - https://compare.rokka.io/_compare/#heif=40&jpeg=80&webp=80&av1=40&width=800&hash=90020fd41237c1a8d5d4b727d47a449e2f154b4c
For more info - https://www.freecodecamp.org/news/best-image-format-for-web-in-2019-jpeg-webp-heic-avif-41ba0c1b2789/
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 :)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
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.
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.
Thanks AmaZili for PHP 7.2 it's the same ?
Betafer,
Change 7.4 with whatever 7.x version you need : 7.1, 7.2 or 7.3
/!\ AND use this line to configue :
Thank you AmaZili, but i notic now that the guide is for CentOS we use Debian 9
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
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.
Thank you !
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?
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?
Francisco Roman Garcia Rodriguez 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
Hi AmaZili,
Say no more :), I've read the next and then I have everything clear:
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.
Francisco Roman Garcia Rodriguez Nice advise !
This should really lasts longer, even if the php.ini change lasts for weeks now, it is not a long term solution.
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.
Please sign in to leave a comment.