> On 11 Oct 2017, at 08:18, kasak <ka...@kasakoff.net> wrote:
> 
> By the way, why does we use «mod_php7.c» in configs? 
> Here is the included in openbsd php.conf file:
> 
> LoadModule php7_module /usr/local/lib/php-7.0/libphp7.so
> 
> <IfModule mod_php7.c>
>        AddType application/x-httpd-php .php .phtml .php3
>        AddType application/x-httpd-php-source .phps
> # Most php configs require this
>        DirectoryIndex index.php
> </IfModule>
> 
> First we load module named php7_module and after that we are trying to check 
> not the name of module, but some .c file? 
> Isn’t it more logical to check like this: <IfModule php7_module> ? 


The module argument can be either the module identifier or the file name of the 
module, at the time it was compiled. For example, rewrite_module is the 
identifier and mod_rewrite.c is the file name.

I personally use and I would use also in default php.conf in the ports the 
following


<IfModule !php!!MV!!_module>
        LoadModule php!!MV!!_module !!PREFIX!!/lib/php-!!PV!!/libphp!!MV!!.so
</IfModule>

<IfModule php!!MV!!_module>
        AddType application/x-httpd-php .php .phtml .php3
        AddType application/x-httpd-php-source .phps
        DirectoryIndex index.php
</IfModule>

It is more consistent IMHO but there is Robert Nagy <rob...@openbsd.org> to ask 
about opinion.

Reply via email to