Server Info

Open to all! Ask other shopowners for help.
Post Reply
BatteryTrader
Contributor
Posts: 153
Joined: Thu Apr 11, 2024 7:18 am
Phoenix Version: 1.1.0.3
Has thanked: 3 times
Been thanked: 17 times

Server Info

Post 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

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Server Info

Post by heatherbell »

It works fine on all our hosts. Maybe your host has exec() disabled - check with them.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply