Hy my imscp 1.5.3 Build: 20180516
php switcher 5.0.5
vps server ubuntu 16.04
installed versions php : 5.3, 5.4, 5.5, 5.6, 7.0
And problem install php 7.2 and 7.4
/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --auto-setup 7.2
please help thanks.
Code
- /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --register 7.2
- [INFO] Scanning PHP site for the PHP 7.2 sources...
- [INFO] Found PHP 7.2 sources at http://php.net/distributions/php-7.2.24.tar.gz
- [INFO] The PHP 7.2.24 sources are already present in the /usr/local/src/phpswitcher directory. Skipping download.
- [INFO] Extracting the PHP 7.2.24 archive into /usr/local/src/phpswitcher/php-7.2.24 ...
- [INFO] Setup PHP build environment...
- [ERROR] main: Couldn't change directory to /usr/share/debootstrap/scripts: No such file or directory: at /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/../../../../engine/PerlLib/iMSCP/Cwd.pm line 47.
- root@vmi271578:/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# clear
- root@vmi271578:/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --auto-setup 7.2
- 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/20210715
- -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.
/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler --auto-setup 7.1 7.2
Can't open perl script "php_compiler": No such file or directory