Debian 12 -Php 7 or lower error. Can't install

Hello. I can’t install php 7.4 or lower. Version 8.2 is installed.
The latest version of Hestia is installed. When trying to install manually - nothing changes, errors.
What to do? Where to run?



2024-08-26_16-31-10

Hi @arty,

Selecting the php version and clicking on button Save should install that php version.

You should not try to install php versions manually, instead use this command:

v-add-web-php 7.4

Ssh console ?
v-add-web-php 7.4
bash: v-add-web-php: command not found

I think I wrote the command in the wrong place :slight_smile:

Use this:

sudo su -
v-add-web-php 7.4

or this:

sudo /usr/local/hestia/bin/v-add-web-php 7.4

:slight_smile: quote=“sahsanu, post:4, topic:15640”]
sudo /usr/local/hestia/bin/v-add-web-php 7.4
[/quote]

Thaks.:slight_smile:

E: Failed to fetch https://packages.sury.org/apache2/dists/bookworm/InRelease 451 [IP: 2001:41d0:605:ca00::1175:1 443]
E: The repository ‘Index of /apache2/ bookworm InRelease’ is not signed.
E: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease 451 [IP: 2001:41d0:605:ca00::1175:1 443]
E: The repository ‘Index of /php/ bookworm InRelease’ is not signed.
Installing PHP-7.4, please wait… -
ERROR: Installation failed, please run the following command manually for debugging:
apt-get install php7.4-common php7.4-mbstring php7.4-bcmath php7.4-cli php7.4-curl
php7.4-fpm php7.4-gd php7.4-intl php7.4-mysql
php7.4-soap php7.4-xml php7.4-zip php7.4-json php7.4-bz2
php7.4-pspell php7.4-imagick php7.4-imap php7.4-ldap
cp: 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

This might be the issue if you are using a Russian ip adress for the server

1 Like

As an alternative, you could replace the current sury repository by this one:

deb https://ftp.mpi-inf.mpg.de/mirrors/linux/mirror/deb.sury.org/repositories/php/ bookworm main

Before install
1 source deb

deb http://debian.octopuce.fr/sury-php/ bookworm main
deb https://ftp.mpi-inf.mpg.de/mirrors/linux/mirror/deb.sury.org/repositories/php/ bookworm main

2 Download

3 sudo mv ~/apt.gpg /etc/apt/trusted.gpg.d/php.gpg
4 sudo apt update
THANKS :slight_smile:

1 Like

Еще одно зеркало подкину - просто пишем .su вместо .org (там где packages.sury.org) и все будет работать без 451 всяких.

https://sury.su/


One more mirror - just write .su instead of .org (where packages sury org is) and everything will work without any 451s.