This script will not work with version 5.0.1. It will not work
Which script ? And maybe, you could give further details?
Thank you.
This script will not work with version 5.0.1. It will not work
Which script ? And maybe, you could give further details?
Thank you.
Yes, I have done it. I checked first the php-Versions. Every php-Version ist in 'ok' status.
And so, if the status was not 'ok', it was? Without the status, we cannot say anything more
I'll investigate for the errors. The cowbuilder version from Debian jessie and Ubuntu xenial seem to not work very good... The extra package as passed though the EXTRAPACKAGES variable from the .pbuilderrc configuraiton file are not taken into account (not installed) explaining the error.
Regarding the cleanup, you should not have to do that. Doing this lead to full creation (debootstrap process) of the build environment each time your run the php_compiler.pl script while it should be created only once. The workflow is as follows:
Look at the script for more details.
BTW: Next time please, create one thread per issue. Best would be to report those issues on github but we need first your github account to give you access to the private repository.
Dear community,
A new version of the PhpSwitcher plugin has just been released.
Version compatible with i-MSCP Serie ≥ 1.5.3
Once connected on our forums, you can purchase this plugin at: https://i-mscp.net/index.php/PaidSubscriptionList/
Documentation is available at: https://wiki.i-mscp.net/doku.php?id=plugins:phpswitcher
CHANGELOG
Thank you for using our plugins.
I couldn't change the standard php-version and with one customer it says:
Plugin::PhpSwitcher::_overrideHttpFpmServerSettings: Couldn't find PHP version for the ... .de domain. at /var/www/imscp/gui/plugins/PhpSwitcher/backend/PhpSwitcher.pm line 828.
Plugin::PhpSwitcher::_overrideFpmUdsPath: Couldn't find PHP version for t
Such error can occurs when a PHP version is set for a domain but that this version is in error state. This shouldn't occurs in normal context. The first thing to check is the status of the registered PHP versions through the PhpSwitcher adminstration interface. From there, you should be able to check the status of all your registered PHP versions, including the one that is in error state. Then you should be able to edit or even remove it. Clearly, you have a problem with one of your registered PHP version, the one set for your domain.
Discusion regarding the implementation
For now on, when a PHP version that is set for a domain is in error state, a failure will be raised by the Plugin::PhpSwitcher::_overrideFpmUdsPath event listener (assuming the apache_php_fpm httpd server implementation) when the domain entity will be processed by the backend. The error will of course be propagated to the domain entity as the backend will be unable to configure PHP for it... An easy solution would be to fallback to the default PHP version in such case but then, the problem would be just hidden, giving the sysadmin hard time knowing why the PHP version set for a domain is not the one effectively used... From my point of view, the current implementation is correct... In such a situation the sysadmin should in order:
Thank you for your report. See PHP Switcher 5.0.0 - Error on compiling "need to specify operation before --basepath option
Thread closed.
Found the cause... In older cowbuilder versions (as provided by Debian Jessie and Ubuntu Xenial Xerus repositories) the create command must be passed as an option style command, that is: --create instead of create... Similar problem should exist for the update command...
This is due to change in cowbuilder... Option style command are not longer recommented but still supported by all versions so, I'll switch to option style command...
Basically put:
will lead to:
with older cowbuilder versions where commands were only passed as option style commands while:
will work with any version, even through, option style command are not longer recommended in latest cowbuilder version:
Sorry for the disagreement.
I couldn't change the standard php-version and with one customer it says:
What do you mean by "standard" php version?