Page 1 of 1
Predetermined php
Posted: Sun 5. Feb 2023, 15:55
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.
Re: Predetermined php
Posted: Sun 5. Feb 2023, 16:02
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
Re: Predetermined php
Posted: Sun 5. Feb 2023, 16:41
by lmarcos
So I would need to run keyhelp-php74 whateverthename.php instead of php whateverthename.php, right?
Re: Predetermined php
Posted: Sun 5. Feb 2023, 16:48
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.
Re: Predetermined php [SOLVED]
Posted: Sun 5. Feb 2023, 17:07
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?)
Re: Predetermined php
Posted: Sun 5. Feb 2023, 17:16
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