Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104046 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65400 invoked from network); 3 Feb 2019 00:25:21 -0000 Received: from unknown (HELO mail.experimentalworks.net) (84.19.169.162) by pb1.pair.com with SMTP; 3 Feb 2019 00:25:21 -0000 Received: from kuechenschabe.fritz.box (ppp-188-174-126-156.dynamic.mnet-online.de [188.174.126.156]) by mail.experimentalworks.net (Postfix) with ESMTPSA id D1BC252448; Sat, 2 Feb 2019 22:05:48 +0100 (CET) Message-ID: <1549141548.26811.23.camel@schlueters.de> To: "Legale.legale" , Stanislav Malyshev Cc: PHP internals Date: Sat, 02 Feb 2019 22:05:48 +0100 In-Reply-To: <5c560305.1c69fb81.4f228.9649@mx.google.com> References: <5c560305.1c69fb81.4f228.9649@mx.google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] phpenmod/phpdismod From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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