Page 1 of 1

500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 12:37
by curiousclumsy
I have updated from Ubuntu 20 to 22 then 24.

All websites are loading just fine.

What I have tried and still didn't resolve the issue:
- using KeyHelp toolbox and choosing Rewrite KeyHelp configuration
- using KeyHelp toolbox and choosing all maintenance tasks
- checked all logs in /var/log/apache2/
- checked all /var/log/php* fpm logs

Is there a way to reinstall keyhelp without losing any data?

Thanks

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 12:41
by Alexander
Hello,

please have a look into /var/log/keyhelp/php-error.log.

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 13:38
by curiousclumsy
Alexander wrote: Fri 12. Sep 2025, 12:41 Hello,

please have a look into /var/log/keyhelp/php-error.log.
thanks for the quick reply, in /var/log/keyhelp/php-error.log I see:
[12-Sep-2025 08:16:07 UTC] PHP Warning: file_put_contents(/etc/php/8.2/fpm/keyhelp_pool/website1.conf): Failed to open stream: No such file or directory in /home/keyhelp/www/keyhelp/core/Webserver/PhpFpm/PhpFpmPoolConfig.php on line 252

[12-Sep-2025 08:16:07 UTC] PHP Warning: file_put_contents(/etc/php/8.2/fpm/keyhelp_pool/website2.conf): Failed to open stream: No such file or directory in /home/keyhelp/www/keyhelp/core/Webserver/PhpFpm/PhpFpmPoolConfig.php on line 252

[12-Sep-2025 08:16:07 UTC] PHP Warning: file_put_contents(/etc/php/8.2/fpm/keyhelp_pool/website3.conf): Failed to open stream: No such file or directory in /home/keyhelp/www/keyhelp/core/Webserver/PhpFpm/PhpFpmPoolConfig.php on line 252
anywhere else I can check?
thanks

some more information

Code: Select all

● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
     Loaded: loaded (/usr/lib/systemd/system/php8.2-fpm.service; enabled; preset: enabled)
     Active: active (running) since Fri 2025-09-12 12:34:03 BST; 2min 13s ago
       Docs: man:php-fpm8.2(8)
    Process: 58773 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
    Process: 59099 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 58771 (php-fpm8.2)
     Status: "Processes active: 0, idle: 1, Requests: 72, slow: 0, Traffic: 0.80req/sec"
      Tasks: 2 (limit: 57814)
     Memory: 9.6M (peak: 13.3M)
        CPU: 336ms
     CGroup: /system.slice/php8.2-fpm.service
             ├─58771 "php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)"
             └─59340 "php-fpm: pool keyhelp"

Sep 12 12:34:03 server1.xxxxxxxx.net systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Sep 12 12:34:03 server1.xxxxxxxx.net php-fpm8.2[58771]: [12-Sep-2025 12:34:03] WARNING: Nothing matches the include pattern '/etc/php/8.2/fpm/keyhelp_pool/*.conf' from />
Sep 12 12:34:03 server1.xxxxxxxx.net systemd[1]: Started php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Sep 12 12:34:28 server1.xxxxxxxx.net systemd[1]: Reloading php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Sep 12 12:34:28 server1.xxxxxxxx.net systemd[1]: Reloaded php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Sep 12 12:34:28 server1.xxxxxxxx.net php-fpm8.2[58771]: [12-Sep-2025 12:34:28] WARNING: Nothing matches the include pattern '/etc/php/8.2/fpm/keyhelp_pool/*.conf' from />
Sep 12 12:34:28 server1.xxxxxxxx.net php-fpm8.2[58771]: [12-Sep-2025 12:34:28] NOTICE: using inherited socket fd=8, "/run/php/keyhelp_keyhelp.socket"
Sep 12 12:34:42 server1.xxxxxxxx.net systemd[1]: Reloading php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Sep 12 12:34:42 server1.xxxxxxxx.net systemd[1]: Reloaded php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Sep 12 12:34:42 server1.xxxxxxxx.net php-fpm8.2[58771]: [12-Sep-2025 12:34:42] NOTICE: using inherited socket fd=8, "/run/php/keyhelp_keyhelp.socket"

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 13:50
by curiousclumsy
just to add that my php cli is 8.2, not sure that makes any difference

php -v
PHP 8.2.29 (cli) (built: Jul 3 2025 13:08:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.29, Copyright (c) Zend Technologies
with the ionCube PHP Loader v14.4.1, Copyright (c) 2002-2025, by ionCube Ltd.
with Zend OPcache v8.2.29, Copyright (c), by Zend Technologies

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 14:03
by Alexander
curiousclumsy wrote: Fri 12. Sep 2025, 13:50 just to add that my php cli is 8.2, not sure that makes any difference

php -v
PHP 8.2.29 (cli) (built: Jul 3 2025 13:08:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.29, Copyright (c) Zend Technologies
with the ionCube PHP Loader v14.4.1, Copyright (c) 2002-2025, by ionCube Ltd.
with Zend OPcache v8.2.29, Copyright (c), by Zend Technologies
If you are already on Ubuntu 24, this is not the correct PHP Version for your operating system. On Ubuntu 24 there should be PHP 8.3.6
I assume that all steps in the upgrade guide have been followed completely (https://www.keyweb.de/en/keyhelp/develo ... -ubuntu-24).

Uninstall all PHP versions, than install the correct one again.

Code: Select all

apt-get install -y php php-curl php-gd imagemagick php-imagick php-mail-mime php-net-sieve php-pspell php-net-socket php-auth-sasl php-intl php-net-smtp php-zip php-bcmath php-gmp php-soap php-mbstring php-mysql php-readline php-redis

(cross reference viewtopic.php?t=14120)


Or send me the SSH login credentials to your server via PM and i'll have a look.

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 17:35
by curiousclumsy
Hi Alexander, I have now removed all php versions.

Code: Select all

root@server1:/etc# which php8.1
root@server1:/etc# which php8.2
root@server1:/etc# which php8.3
/usr/bin/php8.3
root@server1:/etc# which php8.4
Then the server1.xxxxxx.com page was showing a 503 error. I then regenerated the config using toolbox and the same 500 error shows.

Is there any other log I can look at?

Many thanks

PS: thanks for the ssh offer, unfortunately our IT team has blocked the ssh port from being accessed from outside our network.

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 17:45
by Florian
Hallo,

I do not see the package php-fpm in Alexander's list.

Install this package, too.

Then it should work.

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 17:56
by curiousclumsy
hi Florian, I included that myself before running the command.

Still no luck, sorry about that.

Is there a log for apache perhaps?

I might have to format and start from scratch.

Thanks!
root@server1:/etc# sudo apt-get install php php-cli php-fpm php-curl php-gd imagemagick php-imagick php-mail-mime php-net-sieve php-pspell php-net-socket php-auth-sasl php-intl php-net-smtp php-zip php-bcmath php-gmp php-soap php-mbstring php-mysql php-readline php-redis php-fpm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php is already the newest version (2:8.3+93ubuntu2).
php-cli is already the newest version (2:8.3+93ubuntu2).
php-fpm is already the newest version (2:8.3+93ubuntu2).
php-curl is already the newest version (2:8.3+93ubuntu2).
php-gd is already the newest version (2:8.3+93ubuntu2).
imagemagick is already the newest version (8:6.9.12.98+dfsg1-5.2build2).
php-imagick is already the newest version (3.7.0-4ubuntu3).
php-mail-mime is already the newest version (1.10.11-1).
php-net-sieve is already the newest version (1.4.6-1).
php-pspell is already the newest version (2:8.3+93ubuntu2).
php-net-socket is already the newest version (1.2.2-2).
php-auth-sasl is already the newest version (1.2.0-1).
php-intl is already the newest version (2:8.3+93ubuntu2).
php-net-smtp is already the newest version (1.11.1-1).
php-zip is already the newest version (2:8.3+93ubuntu2).
php-bcmath is already the newest version (2:8.3+93ubuntu2).
php-gmp is already the newest version (2:8.3+93ubuntu2).
php-soap is already the newest version (2:8.3+93ubuntu2).
php-mbstring is already the newest version (2:8.3+93ubuntu2).
php-mysql is already the newest version (2:8.3+93ubuntu2).
php-readline is already the newest version (2:8.3+93ubuntu2).
php-redis is already the newest version (5.3.7+4.3.0-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 17:59
by curiousclumsy
cat /var/log/apache2/*.log

Code: Select all

[Fri Sep 12 00:00:01.231084 2025] [ssl:error] [pid 696239:tid 140615250999168] AH02604: Unable to configure certificate webmail:443:0 for stapling
[Fri Sep 12 00:00:01.237883 2025] [mpm_event:notice] [pid 696239:tid 140615250999168] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Sep 12 00:00:01.237919 2025] [core:notice] [pid 696239:tid 140615250999168] AH00094: Command line: '/usr/sbin/apache2'
apache logs if these are the only one, doesnt show much

Re: 500 error on keyhelp panel only

Posted: Fri 12. Sep 2025, 18:00
by Florian
Provide the logins to SSh (root access) via PM. I will have a look