You are not logged in.

#1 2022-01-05 20:38:48

aksilarch
Member
Registered: 2021-09-15
Posts: 51

[SOLVED] downgrade from php 8 to php 7

hello,

i had set up and configured phpPgAdmin on my arch, the current version of phpPgAdmin doesn't fully support php 8 (php php-apache php-pgsql..), which is currently installed, i tried downloading php7, php7-apache, php7-pgsql however phpPgAdmin doesn't detect the php 7 modules at all, and when i try to use

update-alternatives

i get:

sudo update-alternatives --set php /bin/php7
update-alternatives: error: no alternatives for php

i need this downgrade for my phpPgAdmin, or for the whole system if needed, how can i achieve that?

ty in advance

Last edited by aksilarch (2022-01-13 10:57:19)


archlinux cures my depression.

Offline

#2 2022-01-05 21:35:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,493
Website

Re: [SOLVED] downgrade from php 8 to php 7

Is this an arch system?  Update-alternatives is a debian tool.  I see it is provided by our dpkg package, but why would you expect it to work?

You don't need to downgrade anything though, php7 can be installed alongside the regular php package - you just need to configure your server to call the right binary.  What server are you using?  If you are using nginx, are you using php-fpm?  If so, you'd just need to enable the php-fpm7 service instead of the php-fpm service.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-01-05 21:42:15

progandy
Member
Registered: 2012-05-17
Posts: 5,320

Re: [SOLVED] downgrade from php 8 to php 7

If you use the apache module, then you'll have to change your apache config to load php7_module.

Last edited by progandy (2022-01-05 21:43:05)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2022-01-06 10:40:54

aksilarch
Member
Registered: 2021-09-15
Posts: 51

Re: [SOLVED] downgrade from php 8 to php 7

Trilby wrote:

Is this an arch system?  Update-alternatives is a debian tool.  I see it is provided by our dpkg package, but why would you expect it to work?

You don't need to downgrade anything though, php7 can be installed alongside the regular php package - you just need to configure your server to call the right binary.  What server are you using?  If you are using nginx, are you using php-fpm?  If so, you'd just need to enable the php-fpm7 service instead of the php-fpm service.

i'm using httpd apache


archlinux cures my depression.

Offline

#5 2022-01-06 10:41:40

aksilarch
Member
Registered: 2021-09-15
Posts: 51

Re: [SOLVED] downgrade from php 8 to php 7

progandy wrote:

If you use the apache module, then you'll have to change your apache config to load php7_module.


alright, i'll poke around when i'm on the system and update this thread


archlinux cures my depression.

Offline

#6 2022-01-13 10:57:56

aksilarch
Member
Registered: 2021-09-15
Posts: 51

Re: [SOLVED] downgrade from php 8 to php 7

marking this thread as solved.

sorry for the delay.

as a temporary fix i did this: https://stackoverflow.com/questions/652 … nstantiate


archlinux cures my depression.

Offline

#7 2022-01-13 14:34:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,493
Website

Re: [SOLVED] downgrade from php 8 to php 7

As a temporary fix for what??  That thread has absolutely nothing to do with using different php interpreter versions.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB