PHP by software collections error

NethServer Version: 7.7.1908
Module: Server Web

Hello,
today I’ve installe " PHP by software collections", everything seemed to work perfectly but when I change PHP version in vhost, I receive this error:

{
“steps”: 5,
“pid”: 29273,
“args”: “test”,
“event”: “vhost-modify”
}
{
“step”: 1,
“pid”: 29273,
“action”: “S05generic_template_expand”,
“event”: “vhost-modify”,
“state”: “running”
}
{
“progress”: “0.20”,
“time”: “1.26027”,
“exit”: 256,
“event”: “vhost-modify”,
“state”: “done”,
“step”: 1,
“pid”: 29273,
“action”: “S05generic_template_expand”
}
{
“step”: 2,
“pid”: 29273,
“action”: “S10nethserver-php-fpm_pool_creation”,
“event”: “vhost-modify”,
“state”: “running”
}
{
“progress”: “0.40”,
“time”: “0.109099”,
“exit”: 0,
“event”: “vhost-modify”,
“state”: “done”,
“step”: 2,
“pid”: 29273,
“action”: “S10nethserver-php-fpm_pool_creation”
}
{
“step”: 3,
“pid”: 29273,
“action”: “S30nethserver-virtualhosts-setbasicpassword”,
“event”: “vhost-modify”,
“state”: “running”
}
{
“progress”: “0.60”,
“time”: “0.080183”,
“exit”: 0,
“event”: “vhost-modify”,
“state”: “done”,
“step”: 3,
“pid”: 29273,
“action”: “S30nethserver-virtualhosts-setbasicpassword”
}
{
“step”: 4,
“pid”: 29273,
“action”: “S60nethserver-virtualhosts-ftp-save”,
“event”: “vhost-modify”,
“state”: “running”
}
{
“progress”: “0.80”,
“time”: “4.172583”,
“exit”: 0,
“event”: “vhost-modify”,
“state”: “done”,
“step”: 4,
“pid”: 29273,
“action”: “S60nethserver-virtualhosts-ftp-save”
}
{
“step”: 5,
“pid”: 29273,
“action”: “S90adjust-services”,
“event”: “vhost-modify”,
“state”: “running”
}
{
“progress”: “1.00”,
“time”: “2.837207”,
“exit”: 0,
“event”: “vhost-modify”,
“state”: “done”,
“step”: 5,
“pid”: 29273,
“action”: “S90adjust-services”
}
{
“pid”: 29273,
“status”: “failed”,
“event”: “vhost-modify”
}
{
“type”: “Error”,
“attributes”: {
“event_name”: “vhost-modify”,
“event_args”: [
“test”
]
},
“message”: “vhost.api_update_failed”
}

The server run doesn’t seems to have any problem.

Should I care about this problem?

yes check in /var/log/messages when the event fails

I can’t find the setting in Cockpit at all, but here’s what happens in the old server manager when I try to set the default to PHP 7.3:
image
It looks like the problem is here:

Apr  3 13:16:34 neth-test esmith::event[17599]: expanding /etc/opt/rh/rh-php73/php-fpm.d/000-virtualhost.conf
Apr  3 13:16:34 neth-test esmith::event[17599]: ERROR: Cannot create output file //etc/opt/rh/rh-php73/php-fpm.d/000-virtualhost.conf.17601 No such file or directory
Apr  3 13:16:34 neth-test esmith::event[17599]: at /etc/e-smith/events/actions/generic_template_expand line 64.
Apr  3 13:16:34 neth-test esmith::event[17599]: [WARNING] expansion of /etc/opt/rh/rh-php73/php-fpm.d/000-virtualhost.conf failed
Apr  3 13:16:34 neth-test esmith::event[17599]: expanding /etc/opt/remi/php70/php.ini

…which is the same problem in my other thread about installing the “web hosting” module from the software center.

1 Like

Issue opened here:

Workaround:

Create directory /etc/opt/rh/rh-php73/php-fpm.d

a fix is available, could you test it

1 Like