Well, very simple, but on php.net it can be explained more explicitly.
I use one docker container containing the ubuntu base and use php-fpm.
The steps to install this extension in my context:
First search for xsl extension in linux repository apt-cache xsl search
As a result, I found php5-xsl, so it was installed only apt-get install php5-xsl
that the process of setting configuration settings has already been added, if this does not happen, just do vim / etc / php5 / mods-available / xsl.ini
paste this content: extension = xsl.so
(obviously the paths match your php configuration settings, but my example is the default configuration)
Restart php fpm and finish!
Paulo victor
source share