PHP Extension

Discussions about the usage of KeyHelp.
veszvs
Posts: 10
Joined: Wed 8. Feb 2023, 19:53

Re: PHP Extension

Post by veszvs »

24unix wrote: Thu 9. Feb 2023, 16:16 Missing extension are noted in the error log.
Nothing appears to me.
Unfortunately I don't know why I only have problems with keyhelp, too bad because I liked it as a panel.
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: PHP Extension

Post by Alexander »

veszvs wrote: Thu 9. Feb 2023, 14:58 I'm used to cpanel, that I just select what I need and done.
veszvs wrote: Thu 9. Feb 2023, 15:38 Honestly, I don't even know what extension this script needs.
I am curious, how do you know determine, what extensions you need, when you do not know, what extensions are missing?

What operating system are you using (therefore which PHP-version)?


Compared to you screenshot, the following extensions would be missing by default (for the defaul PHP-Verison of the operating system).

Code: Select all

imap
pdo_sqlite
propro
raphf
wddx
xmlrpc
You can check, which extensions are enabled with the phpinfo() command (via web) or via CLI with the "php -m" command.
There you will find, that the json extension is enabled by default.


You say there is an error - what error? What does not work like expected? How do you know, that there is an error? Error 500 / white page etc?
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
veszvs
Posts: 10
Joined: Wed 8. Feb 2023, 19:53

Re: PHP Extension

Post by veszvs »

So here is the opposite effect, too many extensions are not good, can it be?

I have shown a small piece of code, where it calls the json file.
That's what it has to do and that's what doesn't work.

As you see in the picture my table is empty.
It cannot recall the data present in this file, so I immediately thought that some extension was missing, considering that there is not much written on the panel or, in any case, graphically it is not possible to understand exactly what is there and what is not.

Image

I can't blame the script not working.
Because on all the other panels it's fine.
It's with keyhelp that I liked to use that I have problems 😞
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: PHP Extension

Post by Alexander »

veszvs wrote: Thu 9. Feb 2023, 16:47 So here is the opposite effect, too many extensions are not good, can it be?
No, too many extensions may slow down the server a bit, but this should be minimal.
I have only compared the list of PHP extensions you posted, which checkbox were ticked with the list from a default server.


You aren't a PHP developer, correct? Otherwiese you would have plenty of options to debug the script or let the script produce meaningful error messages. Without seeing everything in detail, we could only guess.

My guess is, that you have messed up file ownership (all files may belong to root, instead of the corresponding owner), or something like that.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
hakeryk
Posts: 8
Joined: Sat 3. Feb 2024, 21:29

Re: PHP Extension

Post by hakeryk »

Florian wrote: Thu 9. Feb 2023, 09:50 Hello,

PHP module for the system PHP version can be installed easily by apt

PHP modules for the additional Keyhelp PHP version have to be compiled or installed via PECL.

e.g. compiling of redis extension for PHP 7.4:

Code: Select all

wget https://pecl.php.net/get/redis-5.1.1.tgz

tar xzf redis-5.1.1.tgz

cd redis-5.1.1/

/opt/keyhelp/php/7.4/bin/phpize (install autoconf if necessary)

./configure --with-php-config=/opt/keyhelp/php/7.4/bin/php-config
make
make install

echo "extension=redis.so" > /opt/keyhelp/php/7.4/etc/conf.d/redis.ini

/etc/init.d/keyhelp-php74-fpm restart
Hey and welcome. I really like your panel - I was working on paid IspManager and it was really bad.

Although I can install and enable PHP extensions via apt for default PHP, I encountered a problem with adding something to additional PHP interpreters.

I know that is awkward but I need to have PHP Mcrypt for 7.4 (I know that it was not included with it and is deprecated but I need this). I am a not Debian pro or something so I would love to hear step-by-step instructions from You about this.

Your answer to the quoted reply is almost perfect but I am a little bit too scared to use it because there is no explanation for this part below:

Code: Select all

/opt/keyhelp/php/7.4/bin/phpize (install autoconf if necessary)
./configure --with-php-config=/opt/keyhelp/php/7.4/bin/php-config
make
make install
Extra question: How can I run a PHP script ie: in crontab that will use the alternative 7.4 version instead of the default 8.2?
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: PHP Extension

Post by Florian »

Hallo,

what "explanations" do you need for this commands?
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply