Page 1 of 1

Server Info

Posted: Wed May 14, 2025 5:45 am
by BatteryTrader
Hello
1.1.0.1 installed with PHP8.3

When I visit the server_info.php page I get a 500 error and the PHP error is as follows

Code: Select all

[Wed May 14 06:22:02.510766 2025] [proxy_fcgi:error] [pid 910751:tid 910863] [client xxx.xxx.xxx.xxx:0] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function exec() in /home/MYSERVER/DOMAIN.COM/public_html/MYADMIN/includes/classes/system_info.php:35\nStack trace:\n#0 /home/MYSERVER/DOMAIN.COM/public_html/MYADMIN/server_info.php(16): system_info->__construct()\n#1 {main}\n  thrown in /home/MYSERVER/DOMAIN.COM/public_html/MYADMIN/includes/classes/system_info.php on line 35', referer: https://DOMAIN.COM/MYADMIN/index.php
Now it has a few add ons now, but I have clean instal on another server and its doing the same, I checked with the demo site and that page is disabled so cant check.

MYADMIN/includes/classes/system_info.php
Line 35 is

Code: Select all

 'kernel' => preg_split('{[\s,]+}', @exec('uname -a'), 5)[2] ?? '',
within

Code: Select all

      $this->data['system'] = [
        'date' => date('Y-m-d H:i:s O T'),
        'os' => PHP_OS,
        'kernel' => preg_split('{[\s,]+}', @exec('uname -a'), 5)[2] ?? '',
        'uptime' => @exec('uptime'),
        'http_server' => $_SERVER['SERVER_SOFTWARE'],
      ];
The server's are Linux, Apache 2, with MariaDB

Any Pointers?

Regards

David

Re: Server Info

Posted: Wed May 14, 2025 6:42 am
by heatherbell
It works fine on all our hosts. Maybe your host has exec() disabled - check with them.