https://bugs.koozali.org/show_bug.cgi?id=12120

John Crisp <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from John Crisp <[email protected]> ---
> smeserver-webhosting-0.0.9-11.el7.sme.noarch currently installed

Update. There were a few bugs to do with capitalisation and syntax. This is a
duplicate of 11666/11697 which are a bit tangled and need reading carefully
along with the patches.

These work fine here.

smeserver-php-3.0.0-42.el7.sme.x86_64 @smeupdates
smeserver-webhosting-0.0.9-15.el7.sme.noarch @smecontribs



config show php

php=service
    AllowUrlFopen=Off
    status=enabled


config show php80

php80=configuration
    AllowUrlFopen=Off


db accounts show regimental

regimental=ibay
    AllowOverride=All
    AllowUrlFopen=enabled
....
    PHPVersion=80


cat /etc/opt/remi/php80/php-fpm.d/ibays.conf

[php80-regimental]
.....
php_admin_flag[allow_url_fopen] = on



cat /etc/php-fpm.d/www.conf

[php]
.....
php_admin_flag[allow_url_fopen] = off



cat /etc/php.ini
.....
allow_url_fopen                        = Off


You can see the settings priority order here.

grep -rn Fopen /etc/e-smith/templates/*

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays:41: my
$allow_url_fopen = $properties{'AllowUrlFopen'} ||
$defaultPHPproperties{'AllowUrlFopen'} ;
/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All:17:  my $allow_url_fopen
    = $pool->prop('AllowUrlFopen')     || 'disabled';
/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays:18:  my
$allow_url_fopen     = $ibay->prop('AllowUrlFopen')     ||
$defaultPHPproperties{'AllowUrlFopen'};
/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header:10: 
$AllowUrlFopen     = $php->prop('AllowUrlFopen')     || 'off';
/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings:17:php_admin_flag[allow_url_fopen]
= { $AllowUrlFopen }
/etc/e-smith/templates/etc/php-fpm.d/www.conf/20Horde:15:  my $allow_url_fopen 
   = $horde->prop('PHPAllowUrlFopen')     || 'disabled';
/etc/e-smith/templates/etc/php.ini/65FopenWrappers:1:allow_url_fopen           
            = {($phpcur->prop(AllowUrlFopen) || $php{AllowUrlFopen} || 'Off')}



> suggest closing duplicate 11697

> but I see a way to improve with this bug, we could add another migrate line
> to /etc/e-smith/db/accounts/migrate/20ibay-php:

>                   PHPAllowUrlfOpen     => "AllowUrlFopen",
>+                  AllowUrlfOpen     => "AllowUrlFopen",

I could patch this but there is already one for smeserver-php in abeyance for
httpd template updates so don't want to confuse testing to that. New bug for
that or use this one?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to