Delet /var/local/imscp directory..
How to new php version? Error.
- portal vtmkhu
- Thread is marked as Resolved.
-
-
It's not "composer -V", but :
/var/local/imscp/composer.phar --version
(for default location)
And I don't know why you change this PHP settings, nothing to see with your error.
PS : Use the edit function, and also the "code" format correctly, my eyes will thank you.
-
-
Succeesss!!!!
This problem:
/var/local/imscp
rename
/var/local/xxximscp
and run autoinstall. 5 min and full succes install (autoupdate)
i-MSCP 1.5.3
Build: 2018120800
Codename: Ennio Morricone
Thanks for help.
Code- /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --auto-setup 7.1
- Unknown option: auto-setup
- Usage: perl php_compiler.pl [OPTION]... [5.3|5.6|7.0|7.1|7.2|7.3|7.4]...
- PHP Compiler
- This script compile and install the various PHP versions. It can also register
- the compiled and/or packaged PHP versions in the PhpSwitcher plugin.
- REGISTRATION
- When the --register option is passed-in, PHP versions found in the installation
- directory are automatically registered in the PhpSwitcher plugin.
- If you want favor packaged PHP versions rather than compiled PHP versions, you
- must also pass the --packaged option, in which case, packaged PHP versions will
- be preferred when there are available.
- You can also work with packaged PHP versions only, by passing the
- --packaged-only option.
- Packaged PHP versions are considered only if the CGI/FPM SAPIs and PEAR
- distribution are all installed on the system.
- ENVIRONMENT VARIABLES
- The script support environment variables to change the default behavior.
- PSW_DISTRIBUTION={devuan_jessie|jessie|stretch|buster|xenial|bionic|ascii}
- This variable make it possible to change the target distribution. When the
- target distribution is a foreign distribution, the build will always be done in
- a chroot environment, and no PHP runtime dependencies will be installed on the
- system.
- If the install MAKE(1) target is involved, the '-foreign' suffixe will be added
- to the installation directory.
- PSW_FCHROOT=1
- When this variable is set, operations will executed in a chroot environnment,
- regardless of the involved MAKE(1) targets.
- OPTIONS
- -a, --register Register PHP versions in the PhpSwitcher
- plugin. Ignored when the target distribution
- is a foreign distribution.
- -b, --build-dir {dir} Build directory.
- Default: /usr/local/src/phpswitcher
- -d, --download-only Download only mode.
- -e --download-dir Download directory.
- Default: /usr/local/src/phpswitcher
- -f, --force-last Force download and build of latest PHP
- versions.
- -i, --install-dir {dir} Installation directory.
- default /opt/phpswitcher/20210716
- -j, --parallel-jobs {nn} Number of parallel jobs for MAKE(1).
- Default: CPU cores + 1 : 5
- -k --keep-builddir Keep current build directory.
- -n --no-chroot Don't operate in a chroot environment.
- -m --no-static-paths Don't create symlinks for static paths.
- -o, --packaged-only Only considere the packaged PHP versions. Only
- relevant with the --packaged option.
- -p, --packaged Favor registration of packaged PHP versions
- rather than compiled PHP versions when there
- are available. Only relevant with the
- --register option.
- -r, --runtime-dependencies Install the runtime dependencies for the
- involved PHP versions.
- -s, --register--only Skip download, build, and install processes
- when the no PHP version is found. Only
- relevant with the --register option.
- -t, --make-target {target} MAKE(1) target to execute. Pass this option
- multiple time for multiple targets.
- -v, --verbose Enable verbose mode.
- -z, --zts Enable PHP ZTS support.
- -?,-h --help Show this help.
- root@vmi271578:/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --register 7.1
- [INFO] Scanning PHP site for the PHP 7.1 sources...
- [INFO] Found PHP 7.1 sources at http://php.net/distributions/php-7.1.33.tar.gz
- [INFO] The PHP 7.1.33 sources are already present in the /usr/local/src/phpswitcher directory. Skipping download.
- [INFO] Extracting the PHP 7.1.33 archive into /usr/local/src/phpswitcher/php-7.1.33 ...
- [INFO] Setup PHP build environment...
- [ERROR] main: open3: exec of /usr/sbin/cowbuilder --create --distribution xenial --architecture amd64 --basepath /var/cache/pbuilder/psw-ubuntu-xenial.cow --configfile ./pbuilder/Ubuntu/.pbuilderrc --hookdir ./pbuilder/Ubuntu/hook.d failed at /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/../../../../engine/PerlLib/iMSCP/Execute.pm line 116.
-
That's exactly what the other post I linked was saying... just clearing this cache (even just the file was enough for some others).
And please, read the output of the console, stop doing :
Look the line right after it !!!!
This parameter DOES NOT EXIST.
And read the wiki of the plugin to see how to use the packaged version instead of the compiled version (which require more time as your server has to compile the whole PHP binary)
-
-
-
https://wiki.i-mscp.net/doku.p…ersions_since_version_500
I can't do more... all well explained here (and I put you on the correct chapter of the wiki, if you can't understand how it work, I don't know what to say).
-
-
perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register 7.1 7.2
Do you believe it so?Code- /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --zts --packaged --register 7.2
- -bash: /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler#: No such file or directory
- root@vmi271578:~# cd /usr/local/src
- root@vmi271578:/usr/local/src# /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --zts --packaged --register 7.2
- -bash: /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler#: No such file or directory
- root@vmi271578:/usr/local/src# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --packaged --packaged-only 7.2
- [INFO] Registering PHP versions in the PhpSwitcher plugin...
- [INFO] The packaged PHP 7.2 version hasn't been found, or one of its requirements isn't meet (unmet dependencies), and the --packaged-only flag is set. Skipping...
- root@vmi271578:/usr/local/src# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --packaged --packaged-only 7.1
- [INFO] Registering PHP versions in the PhpSwitcher plugin...
- [INFO] The packaged PHP 7.1 version hasn't been found, or one of its requirements isn't meet (unmet dependencies), and the --packaged-only flag is set. Skipping...
- root@vmi271578:/usr/local/src# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --packaged --packaged-only 7.3
- [INFO] Registering PHP versions in the PhpSwitcher plugin...
- [INFO] The packaged PHP 7.3 version hasn't been found, or one of its requirements isn't meet (unmet dependencies), and the --packaged-only flag is set. Skipping...
- root@vmi271578:/usr/local/src# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --packaged --packaged-only 7.4
- [INFO] Registering PHP versions in the PhpSwitcher plugin...
- [INFO] The packaged PHP 7.4 version hasn't been found, or one of its requirements isn't meet (unmet dependencies), and the --packaged-only flag is set. Skipping...
- root@vmi271578:/usr/local/src# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --packaged --install-dir /opt/my/install/directory 7.1 7.3 7.4
- [INFO] Scanning PHP site for the PHP 7.1 sources...
- [INFO] Found PHP 7.1 sources at http://php.net/distributions/php-7.1.33.tar.gz
- [INFO] The PHP 7.1.33 sources are already present in the /usr/local/src/phpswitcher directory. Skipping download.
- [INFO] Extracting the PHP 7.1.33 archive into /usr/local/src/phpswitcher/php-7.1.33 ...
- [INFO] Setup PHP build environment...
- [ERROR] main: open3: exec of /usr/sbin/cowbuilder --create --distribution xenial --architecture amd64 --basepath /var/cache/pbuilder/psw-ubuntu-xenial.cow --configfile /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Ubuntu/.pbuilderrc --hookdir /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Ubuntu/hook.d failed at /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/../../../../engine/PerlLib/iMSCP/Execute.pm line 116.
-
Do you understand english ?
At least, can you read it ?
Because, from what I see there, you don't.
Just say it, and maybe I'll tell you why this is failling and what you are doing wrong... else, once again, read the WHOLE section about the packaged version, you miss a critical part.
-
-
That trouble I do not realise it, that what or how it would be necessary to repair it.
I can in Hungarian I do not talk to one translating this in English I do it what I write.
-
In short : To use the packaged version, you have to install it first:
QuoteFinally, you need keep in mind that for the
php_compiler.pl
script, the packaged PHP versions are considered only when all requirements are met, that is, when for a given PHP version, the CGI sapi, FPM sapi, and the PEAR distribution are all installed on the system.If you follow this part, then you register the packaged version only, that will work, which would be something like, for 7.4 :
But first, install all the requirements as stated in the wiki, simple as that.
-