Predetermined php  [SOLVED]

Locked
lmarcos
Posts: 84
Joined: Sun 26. Jan 2020, 12:55

Predetermined php

Post by lmarcos »

Hi,

Is there any way to switch predetermined operating system within Keyhelp?

Command line is using predetermined php interpreter and I can't see how to update in ndex.php?page=admin_configuration&configure=php_interpreter

None of the domains are using the old php.
User avatar
24unix
Posts: 2084
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Predetermined php

Post by 24unix »

If you have installed additional interpreters they are available as e.g. keyhelp-php74 or keyhelp-php81.

Don't install other versions or rename anything, else KeyHelp is broken.

Workaround: viewtopic.php?p=37825#p37825
Cheers Micha
--
A backend dev walks into a bar, orders 1 beer.
Then orders 100 beers.
Then orders -1 beers.
Then orders “a lizard”.
Then explodes.

The bartender says: “You really should validate your input.”
lmarcos
Posts: 84
Joined: Sun 26. Jan 2020, 12:55

Re: Predetermined php

Post by lmarcos »

So I would need to run keyhelp-php74 whateverthename.php instead of php whateverthename.php, right?
User avatar
24unix
Posts: 2084
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Predetermined php

Post by 24unix »

lmarcos wrote: Sun 5. Feb 2023, 16:41 So I would need to run keyhelp-php74 whateverthename.php instead of php whateverthename.php, right?
Yes.
Cheers Micha
--
A backend dev walks into a bar, orders 1 beer.
Then orders 100 beers.
Then orders -1 beers.
Then orders “a lizard”.
Then explodes.

The bartender says: “You really should validate your input.”
lmarcos
Posts: 84
Joined: Sun 26. Jan 2020, 12:55

Re: Predetermined php  [SOLVED]

Post by lmarcos »

Thanks for the workaround.
I'm having an error with just that, so I ended with keyhelp-php74 --define apc.enable_cli=1

This was the error.
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
User avatar
24unix
Posts: 2084
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Predetermined php

Post by 24unix »

lmarcos wrote: Sun 5. Feb 2023, 17:07 Thanks for the workaround.
I'm having an error with just that, so I ended with keyhelp-php74 --define apc.enable_cli=1

This was the error.
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
I had the same error for my phpbb_update script, and I fixed it like you did.

viewtopic.php?t=11286&hilit=phpbb_update
Cheers Micha
--
A backend dev walks into a bar, orders 1 beer.
Then orders 100 beers.
Then orders -1 beers.
Then orders “a lizard”.
Then explodes.

The bartender says: “You really should validate your input.”
Locked