Re: phpenmod/phpdismod

From: Date: Sat, 02 Feb 2019 21:05:48 +0000
Subject: Re: phpenmod/phpdismod
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-104046@lists.php.net to get a copy of this message
On Sa, 2019-02-02 at 21:52 +0100, Legale.legale wrote: > For example: > phpenmod mysqli > will try to find an extension and if it exists, script will create > related ini file in the conf.d directory. > phpdismod mysqli > will remove ini file from the conf.d dir. > > It makes a world a bit more comfortable for me. :-) Well, i doesn't do much to "find" it. It is a distribution-specific way to manage symlinks to ini files. All it does is to check whether    /etc/php/7.0/mods-available/${extname}.ini exists and if it does link it to    /etc/php/7.0/${sapi}/conf.d/${extname}.ini It doesn't help to find those extensions (which are to be installed via apt) or similar. The split of per-sapi ini scan dir is also Ubuntu-specific. So in that form these scrips are quite useless for vanilla PHP. Where such a mechanism can make sense is in a pecl installer, which currently works by trying to edit the main php.ini file after building the extension. johannes

« previous php.internals (#104046) next »