I need to install vips on centos 7

Hi,

I need to install vips on centos 7. The problem is, when I enter: php -v command, the php version is 5.4.x. How can I change it to php 7.3?

I managed to upgrade the php but now Webp Express gives me this error:

It seems your server setup does not support headers in .htaccess. You should either fix this (install mod_headers) or deactivate the “Enable direct redirection to existing converted images?” option. Otherwise the Vary:Accept header will not be added and this can result in problems for users behind proxy servers (ie used in larger companies)

How do I fix it?

I fixed the Webp Express problem, but still can’t get vips to work. Any idea how to make it work?

I use WebP Express as well, couldn’t get vips working either. Using GraphicsMagik instead.

try link the /usr/local/lsws/lsphp73/bin/lsphp to default php

Actually, I found a better solution. Instead of using vips or imagick or gmagick, it’s better to use google’s cwebp. To install it is as easy as this:

yum install libwebp-tools -y

That’s it. No other configuration required. Webp Express Plugin will auto detect it.