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

--- Comment #6 from Jean-Philippe Pialasse <[email protected]> ---
ok from Terry report issue is that

[28-Dec-2022 12:20:42 America/Toronto] PHP Warning:  fopen(./config.php):
failed to open stream: Permission denied in /opt/phpki/html/setup.php-presetup
on line 366
[28-Dec-2022 12:20:42 America/Toronto] PHP Warning:  fwrite() expects parameter
1 to be resource, bool given in /opt/phpki/html/setup.php-presetup on line 367
[28-Dec-2022 12:20:42 America/Toronto] PHP Warning:  fclose() expects parameter
1 to be resource, bool given in /opt/phpki/html/setup.php-presetup on line 368


which is caused by phpki group not set to be able to write on 

/opt/phpki/html/config.php

need to do that with tempalte.metadata 
and also check the rpm spec to have it set in the first place


/etc/e-smith/templates.metadata/opt/phpki/html/config.php
FILTER=sub { $_[0] =~ /^\s*$/ ? '' : $_[0] }
GID='phpki'
PERMS=0660




second testing all of that I saw

openvpn is required to generate a takey.pem
You can create one later like this:
openvpn --genkey --secret /opt/phpki/phpki-store/CA/private/takey.pem meaning
that the bug is not fixed for this ta key

while openvpn shows
]# whereis openvpn
openvpn: /usr/sbin/openvpn

and /etc/opt/remi/php73/php-fpm.d/www.conf shows
php_admin_value[open_basedir] =
/opt/phpki:/var/lib/php/phpki:/usr/sbin/openvpn:/usr/bin/which:/usr/bin/cat:/usr/bin/egrep:.:/usr/share/pear-addons:/usr/share/pear:/usr/share/pear-data:/usr/share/php:/usr/share/php


/opt/phpki/html/setup.php-presetup:        if (system($command) ==
'/usr/sbin/openvpn') {
/opt/phpki/html/setup.php-presetup:            $cmd = "openvpn --genkey
--secret '$configPrivate_dir/takey.pem'";
/opt/phpki/html/setup.php-presetup:            echo "openvpn is required to
generate a takey.pem<br>";
/opt/phpki/html/setup.php-presetup:            echo "openvpn --genkey --secret
". $configPrivate_dir . "/takey.pem<br>";

which let me guess that path has no /usr/bin and openvpn should have its full
path defined need to fork a bug for that



finally about the mess up content
I was able to reproduce the extra ?
need to investigate why

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee 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