PHP Extension
PHP Extension
Hello everybody, I'm new to the forum.
I've been using KeyHelp for weeks now, great panel, really nice.
But I have problems.
I need to enable and disable extensions of PHP versions.
Many of my scripts don't work properly.
Thank you.
I've been using KeyHelp for weeks now, great panel, really nice.
But I have problems.
I need to enable and disable extensions of PHP versions.
Many of my scripts don't work properly.
Thank you.
-
- Posts: 228
- Joined: Tue 9. Apr 2019, 16:31
- Location: Korschenbroich
- Contact:
Re: PHP Extension
Hallo and welcome,
perhaps you can tell us something about your scripts or even tell us something about the extensions you need.
Have you seen the configuration part where you can activate or disable php-functions?
Chris
perhaps you can tell us something about your scripts or even tell us something about the extensions you need.
Have you seen the configuration part where you can activate or disable php-functions?
Chris
Individuelle Entwicklung webbasierter Datenbanksysteme
https://www.john-softwareentwicklung.de
https://www.john-softwareentwicklung.de
Re: PHP Extension
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:
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
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
**************************************************************
Florian Cheno
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: PHP Extension
Honestly, I still don't understand how it works.christian.john wrote: ↑Thu 9. Feb 2023, 08:10 Hallo and welcome,
perhaps you can tell us something about your scripts or even tell us something about the extensions you need.
Have you seen the configuration part where you can activate or disable php-functions?
Chris
I'm used to cpanel, that I just select what I need and done.
Re: PHP Extension
Honestly, I did not understand what you made me do ...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
but it didn't work for me.
Re: PHP Extension
It would be nice, like on many other panels, to be able to manually select the php extensions for each php version.
Unfortunately, not all of them are very practical.
So it would be just ideal... perfect even for less experienced and practical users.
I do not know what to do...
Unfortunately, there isn't much detailed information on the keyhelp site, and there aren't any step-by-step guides online.
Unfortunately, not all of them are very practical.
So it would be just ideal... perfect even for less experienced and practical users.
I do not know what to do...
Unfortunately, there isn't much detailed information on the keyhelp site, and there aren't any step-by-step guides online.
Re: PHP Extension
I would guess you´re probably fine with one of the additional PHP interpreters.
Only the standard OS PHP version needs some manual installations.
In the additional PHP interpreters 99,9% of common PHP modules & extensions are already included.
So far we do not really know which extentions you are missing...
Only the standard OS PHP version needs some manual installations.
In the additional PHP interpreters 99,9% of common PHP modules & extensions are already included.
So far we do not really know which extentions you are missing...
Gruß,
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: PHP Extension
Tobi wrote: ↑Thu 9. Feb 2023, 15:19 I would guess you´re probably fine with one of the additional PHP interpreters.
Only the standard OS PHP version needs some manual installations.
In the additional PHP interpreters 99,9% of common PHP modules & extensions are already included.
So far we do not really know which extentions you are missing...
Honestly, I don't even know what extension this script needs.
But I know that on cpanel, cwp and hestiacp, it can be seen correctly, while here I can't do it, I've been working on it for 10 days, I had completed the migration when I realized this very serious problem that prevents some of my apps from working.
The script must read a json file.
The script must encrypt the json file.
The script has to write the json file.
In the error log, it gives a small error, but this error also gives me on the other panels, I don't think this affects the functioning.
Could it be that some extension is missing for json to work properly?
Re: PHP Extension
Maybe, if you just post the error here.
Programmers have reason to give them names, and to print them out.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: PHP Extension
This error:
Code: Select all
AH01071: Got error 'PHP message: PHP Notice: Undefined index: password in /home/users/USER/www/folder/index.php on line 7'
line 7-8
Code: Select all
$plaintext_password = $_POST['password'];
$hash = password_hash($plaintext_password,
PASSWORD_DEFAULT);
But when I log in with my details, it works, I can log in without problems.
So as I said it's not a problem of this little error.
Re: PHP Extension
That is a notification, not an error.veszvs wrote: ↑Thu 9. Feb 2023, 15:48
This error:Code: Select all
AH01071: Got error 'PHP message: PHP Notice: Undefined index: password in /home/users/USER/www/folder/index.php on line 7'
But, yes, that is the reason that your script won't work.
The script expects $_POST['password'] to have a value.veszvs wrote: ↑Thu 9. Feb 2023, 15:48
index.php
line 7-8
It looks like an error that can't recover the password.Code: Select all
$plaintext_password = $_POST['password']; $hash = password_hash($plaintext_password, PASSWORD_DEFAULT);
But when I log in with my details, it works, I can log in without problems.
So as I said it's not a problem of this little error.
It neither tests if it's empty, nor does it make any input validation.
That is very 90ies like …
Is it a script from the internet? Can we check the code?
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: PHP Extension
Unfortunately it is not a script that I can show in full.24unix wrote: ↑Thu 9. Feb 2023, 15:58That is a notification, not an error.veszvs wrote: ↑Thu 9. Feb 2023, 15:48
This error:Code: Select all
AH01071: Got error 'PHP message: PHP Notice: Undefined index: password in /home/users/USER/www/folder/index.php on line 7'
But, yes, that is the reason that your script won't work.
The script expects $_POST['password'] to have a value.veszvs wrote: ↑Thu 9. Feb 2023, 15:48
index.php
line 7-8
It looks like an error that can't recover the password.Code: Select all
$plaintext_password = $_POST['password']; $hash = password_hash($plaintext_password, PASSWORD_DEFAULT);
But when I log in with my details, it works, I can log in without problems.
So as I said it's not a problem of this little error.
It neither tests if it's empty, nor does it make any input validation.
That is very 90ies like …
Is it a script from the internet? Can we check the code?
I am sorry.
This error appears when I login to the index.php page.
But I don't care about that, it's the after that there are problems.
It's when the script has to fetch the contents of the json file, which are encoded and it has to decode them and save them encoded.
That's where the problem arises.
It does not work...
Code: Select all
$prepair = file_get_contents("json/file.json");
$json_arr = json_decode($prepair, true);
array_splice($json_arr['file_info'], $delete, 1);
$newJsonData = json_encode($json_arr, JSON_PRETTY_PRINT);
file_put_contents("./json/file.json",$newJsonData);
header('Location: info.php');
Re: PHP Extension
It does not work is no error message.
What's in error.log?
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: PHP Extension
Missing extension are noted in the error log.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.