Install multiphp (1.9)

Hello. The PHP installer stopped working.

Error in the logs:

This applies to all versions of PHP. Only PHP 8.3 was installed.
v1.9.0~beta1
Debian 12

How to solve the problem?

v-add-web-php 5.6 sed: -e expression #1, char 17: unknown command: `/’ Installing PHP-5.6, please wait… - ERROR: Installation failed, please run the following command manually for debugging: apt-get install cp: cannot create regular file ‘/etc/php/5.6/fpm/pool.d/’: No such file or directory sed: can’t read /etc/php/5.6/fpm/pool.d/dummy.conf: No such file or directory cp: cannot create regular file ‘/etc/php/5.6/fpm/’: No such file or directory sed: can’t read /etc/php/5.6/fpm/php-fpm.conf: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/cli/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory sed: can’t read /etc/php/5.6/fpm/php.ini: No such file or directory

See GitHub for fix

Keep in mind that php8.4-imagick is fixed on Sury’s repo

1 Like

Ohh even beter :slight_smile:

2 Likes

This does not install any version of PHP. Neither 5.6 nor 7.3 or 7.4. It is impossible to install at all.

Remove the following lines:

2 Likes

I’ve noticed that installing with --multiphp yes option only installed PHP 8.3 and 8.4. Is this default now/what is the syntax for legacy versions 5.6/7.X? I can file issue if needed. Thanks.

Looks like I was able to manually install via “apt install php7.4-fpm”, as v-add-web-php seems to throw errors:

root@local:/home/debian# v-add-web-php 7.4
sed: -e expression #1, char 17: unknown command: `/'
Installing PHP-7.4, please wait...
-
ERROR: Installation failed, please run the following command manually for debugging:
apt-get install 

^[[A^[[A^[[B^[[Bcp: cannot create regular file '/etc/php/7.4/fpm/pool.d/': No such file or directory
sed: can't read /etc/php/7.4/fpm/pool.d/dummy.conf: No such file or directory
cp: cannot create regular file '/etc/php/7.4/fpm/': No such file or directory
sed: can't read /etc/php/7.4/fpm/php-fpm.conf: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/cli/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory
sed: can't read /etc/php/7.4/fpm/php.ini: No such file or directory

Remove installed PHP versions via the panel except PHP 8.3

In the v-add-web-php file, find and delete the following lines:

Check if version is 8.4 and drop imagick

if [[ ${version} == “8.4” ]]; then
mph=$(echo “$mph” | sed -e “s/php$version-imagick//”)
fi

Then repeat the PHP installation

Remove this line and it should work as intended …

if [[ ${version} == “8.4” ]]; then
mph=$(echo “$mph” | sed -e “s/php$version-imagick//”)
fi
1 Like