I
I
Igor Ivanov2020-07-01 08:53:42
linux
Igor Ivanov, 2020-07-01 08:53:42

PHP as an Apache module. How to configure PHP with an option?

Good afternoon!

I can't find a solution for the following problem. On the server - CentOS 7, web server - Apache, PHP is used as its module. I need GD library. I installed it, but there is no WebP support (the treasured line is not visible in phpinfo). I read that PHP needs to be configured with an option to provide support --with-webp-dir=DIR(since PHP 7.0.0). I read that you can configure via the command line using the "./configure" script. Can you please tell me how to achieve the desired result in my situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2020-07-01
@PlugIN

This option is specified when compiling from source.
On Debian php 7.4 without any magic there is. phpinfo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question