Not show information in Server Status #40

Closed
opened 2026-01-15 11:36:09 +08:00 by yan · 14 comments
Owner

Originally created by @mrburgercheese on GitHub (Jul 6, 2020).

  • OS: Centos 7.7.1908
  • PHP version: 7.3.19

its not work in directadmin server panel. what requirement extention?
thank's

Image 3

Originally created by @mrburgercheese on GitHub (Jul 6, 2020). - OS: Centos 7.7.1908 - PHP version: 7.3.19 its not work in directadmin server panel. what requirement extention? thank's ![Image 3](https://user-images.githubusercontent.com/7570307/86593719-ec292680-bfbf-11ea-93b0-674b85e9ec94.png)
yan added the questionneed more info labels 2026-01-15 11:36:09 +08:00
yan closed this issue 2026-01-15 11:36:11 +08:00
Author
Owner

@kmvan commented on GitHub (Jul 6, 2020):

Can the PHP access /proc dir? Because the network stats info comes from /proc/net/dev.

@kmvan commented on GitHub (Jul 6, 2020): Can the PHP access `/proc` dir? Because the network stats info comes from `/proc/net/dev`.
Author
Owner

@kmvan commented on GitHub (Jul 6, 2020):

Almost all system info comes from /proc.

@kmvan commented on GitHub (Jul 6, 2020): Almost all system info comes from `/proc`.
Author
Owner

@mrburgercheese commented on GitHub (Jul 6, 2020):

when i use php-fpm? where to do that?

@mrburgercheese commented on GitHub (Jul 6, 2020): when i use php-fpm? where to do that?
Author
Owner

@kmvan commented on GitHub (Jul 6, 2020):

You are using Apache right?

@kmvan commented on GitHub (Jul 6, 2020): You are using Apache right?
Author
Owner

@mrburgercheese commented on GitHub (Jul 6, 2020):

yes i using apacbe

@mrburgercheese commented on GitHub (Jul 6, 2020): yes i using apacbe
Author
Owner

@kmvan commented on GitHub (Jul 6, 2020):

Sorry, I don't how to let Apache access /proc dir. I am not sure how to fix it.
Maybe https://askubuntu.com/questions/325498/apache-cant-access-folders-in-my-home-directory ? Not sure.
BTW, why not try to use Nginx? Apache is out data, Nginx in a right way.

@kmvan commented on GitHub (Jul 6, 2020): Sorry, I don't how to let Apache access `/proc` dir. I am not sure how to fix it. Maybe https://askubuntu.com/questions/325498/apache-cant-access-folders-in-my-home-directory ? Not sure. BTW, why not try to use Nginx? Apache is out data, Nginx in a right way.
Author
Owner

@kmvan commented on GitHub (Oct 18, 2020):

If there is no more information, I will close the issue. But this does not mean that this issue cannot be discussed, please feel free to discuss and open it.

@kmvan commented on GitHub (Oct 18, 2020): If there is no more information, I will close the issue. But this does not mean that this issue cannot be discussed, please feel free to discuss and open it.
Author
Owner

@horasjey commented on GitHub (Oct 10, 2023):

i have this problem sir,
how to solved it..?
in my vps
image

@horasjey commented on GitHub (Oct 10, 2023): i have this problem sir, how to solved it..? in my vps ![image](https://github.com/kmvan/x-prober/assets/45363813/fca5d392-0ccb-4cb2-a1dc-e97e535f1832)
Author
Owner

@horasjey commented on GitHub (Oct 10, 2023):

image

@horasjey commented on GitHub (Oct 10, 2023): ![image](https://github.com/kmvan/x-prober/assets/45363813/14f3804a-8385-4411-abb7-b15ef43ba5cc)
Author
Owner

@kmvan commented on GitHub (Oct 10, 2023):

Hi man.
This looks like PHP-fpm doesn't have permission to read the /proc directory.
You can add
fastcgi_param PHP_VALUE
"open_basedir=$document_root:/tmp/:/proc/";

to
/etc/nginx/fastcgi.conf
and reload nginx.
Have a try.

On Tue, Oct 10, 2023 at 6:30 PM Horas Hajovan Siregar <
@.***> wrote:

[image: image]
https://user-images.githubusercontent.com/45363813/273867780-14f3804a-8385-4411-abb7-b15ef43ba5cc.png


Reply to this email directly, view it on GitHub
https://github.com/kmvan/x-prober/issues/90#issuecomment-1754943226, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5JMQVZWAOCJOR4IEQ3QWDX6UPWBAVCNFSM4ORR7QAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGQ4TIMZSGI3A
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

@kmvan commented on GitHub (Oct 10, 2023): Hi man. This looks like PHP-fpm doesn't have permission to read the /proc directory. You can add *fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/";* to */etc/nginx/fastcgi.conf* and reload nginx. Have a try. On Tue, Oct 10, 2023 at 6:30 PM Horas Hajovan Siregar < ***@***.***> wrote: > [image: image] > <https://user-images.githubusercontent.com/45363813/273867780-14f3804a-8385-4411-abb7-b15ef43ba5cc.png> > > — > Reply to this email directly, view it on GitHub > <https://github.com/kmvan/x-prober/issues/90#issuecomment-1754943226>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA5JMQVZWAOCJOR4IEQ3QWDX6UPWBAVCNFSM4ORR7QAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGQ4TIMZSGI3A> > . > You are receiving this because you modified the open/close state.Message > ID: ***@***.***> >
Author
Owner

@horasjey commented on GitHub (Oct 10, 2023):

i man. This looks like PHP-fpm doesn't have permission to read the /proc directory. You can add fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/"; to */etc/nginx
like my problem in this section File(/proc/net/dev)
image

$output = shell_exec('cat /proc/net/dev'); $netDevData = explode("\n", $output); $netDevData = array_filter($fileContent, 'strlen');
image

Now,
How do you implement it into x-prober?

@horasjey commented on GitHub (Oct 10, 2023): > i man. This looks like PHP-fpm doesn't have permission to read the /proc directory. You can add *fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/";* to */etc/nginx like my problem in this section File(/proc/net/dev) ![image](https://github.com/kmvan/x-prober/assets/45363813/e295f3a0-ce99-4bab-bcc5-066b190ee051) ` $output = shell_exec('cat /proc/net/dev'); $netDevData = explode("\n", $output); $netDevData = array_filter($fileContent, 'strlen');` ![image](https://github.com/kmvan/x-prober/assets/45363813/142c0b08-c88e-41ab-b3ee-6bd06d842c44) Now, How do you implement it into x-prober?
Author
Owner

@kmvan commented on GitHub (Oct 10, 2023):

You need to give php-fpm permission to read the /proc directory.

On Tue, Oct 10, 2023 at 7:36 PM Horas Hajovan Siregar <
@.***> wrote:

i man. This looks like PHP-fpm doesn't have permission to read the /proc
directory. You can add fastcgi_param PHP_VALUE
"open_basedir=$document_root:/tmp/:/proc/";
to */etc/nginx
like my problem in this section File(/proc/net/dev)
[image: image]
https://user-images.githubusercontent.com/45363813/273886050-e295f3a0-ce99-4bab-bcc5-066b190ee051.png

$output = shell_exec('cat /proc/net/dev'); $netDevData = explode("\n",
$output); $netDevData = array_filter($fileContent, 'strlen');
[image: image]
https://user-images.githubusercontent.com/45363813/273886472-142c0b08-c88e-41ab-b3ee-6bd06d842c44.png

Now,
How do you implement it into x-prober?


Reply to this email directly, view it on GitHub
https://github.com/kmvan/x-prober/issues/90#issuecomment-1755156060, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5JMQWRI6HEIQKHWYUBZQ3X6UXNBAVCNFSM4ORR7QAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGUYTKNRQGYYA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

@kmvan commented on GitHub (Oct 10, 2023): You need to give php-fpm permission to read the /proc directory. On Tue, Oct 10, 2023 at 7:36 PM Horas Hajovan Siregar < ***@***.***> wrote: > i man. This looks like PHP-fpm doesn't have permission to read the /proc > directory. You can add *fastcgi_param PHP_VALUE > "open_basedir=$document_root:/tmp/:/proc/";* to */etc/nginx > like my problem in this section File(/proc/net/dev) > [image: image] > <https://user-images.githubusercontent.com/45363813/273886050-e295f3a0-ce99-4bab-bcc5-066b190ee051.png> > > $output = shell_exec('cat /proc/net/dev'); $netDevData = explode("\n", > $output); $netDevData = array_filter($fileContent, 'strlen'); > [image: image] > <https://user-images.githubusercontent.com/45363813/273886472-142c0b08-c88e-41ab-b3ee-6bd06d842c44.png> > > Now, > How do you implement it into x-prober? > > — > Reply to this email directly, view it on GitHub > <https://github.com/kmvan/x-prober/issues/90#issuecomment-1755156060>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA5JMQWRI6HEIQKHWYUBZQ3X6UXNBAVCNFSM4ORR7QAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGUYTKNRQGYYA> > . > You are receiving this because you modified the open/close state.Message > ID: ***@***.***> >
Author
Owner

@horasjey commented on GitHub (Oct 10, 2023):

i dont have permision , but my vps not user root,

and now my isue solved modif your file php

image

@horasjey commented on GitHub (Oct 10, 2023): i dont have permision , but my vps not user root, and now my isue solved modif your file php ![image](https://github.com/kmvan/x-prober/assets/45363813/187221da-0aff-4f20-a99d-96ccf3cb0975)
Author
Owner

@kmvan commented on GitHub (Oct 10, 2023):

Okay.

On Tue, Oct 10, 2023 at 7:47 PM Horas Hajovan Siregar <
@.***> wrote:

i dont have permision , but my vps not user root,

and now my isue solved modif your file php

[image: image]
https://user-images.githubusercontent.com/45363813/273889378-187221da-0aff-4f20-a99d-96ccf3cb0975.png


Reply to this email directly, view it on GitHub
https://github.com/kmvan/x-prober/issues/90#issuecomment-1755186141, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5JMQTUI5WO7AT6IKDBGRDX6UYVLAVCNFSM4ORR7QAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGUYTQNRRGQYQ
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

@kmvan commented on GitHub (Oct 10, 2023): Okay. On Tue, Oct 10, 2023 at 7:47 PM Horas Hajovan Siregar < ***@***.***> wrote: > i dont have permision , but my vps not user root, > > and now my isue solved modif your file php > > [image: image] > <https://user-images.githubusercontent.com/45363813/273889378-187221da-0aff-4f20-a99d-96ccf3cb0975.png> > > — > Reply to this email directly, view it on GitHub > <https://github.com/kmvan/x-prober/issues/90#issuecomment-1755186141>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA5JMQTUI5WO7AT6IKDBGRDX6UYVLAVCNFSM4ORR7QAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGUYTQNRRGQYQ> > . > You are receiving this because you modified the open/close state.Message > ID: ***@***.***> >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yan/archived-x-prober#40