common_functions.php 372 file_exists(/pro

Help
tsaenger
2007-04-25
2012-12-12
  • tsaenger

    tsaenger - 2007-04-25

    Hello,

    i installed phpsysinfo 2.5.3 on suse 9.3 and i get this messages when i open the document:

    File      Line      Command      Message
    common_functions.php     372     file_exists(/proc/loadavg)     the file does not exist on your machine
    common_functions.php     372     file_exists(/proc/sys/kernel/hostname)     the file does not exist on your machine
    common_functions.php     372     file_exists(/proc/version)     the file does not exist on your machine
    common_functions.php     372     file_exists(/proc/uptime)     the file does not exist on your machine
    common_functions.php     158     find_program(who)     program not found on the machine
    common_functions.php     372     file_exists(/proc/net/dev)     the file does not exist on your machine
    common_functions.php     372     file_exists(/proc/cpuinfo)     the file does not exist on your machine
    common_functions.php     372     file_exists(/proc/meminfo)     the file does not exist on your machine
    common_functions.php     158     find_program(df)     program not found on the machine
    common_functions.php     158     find_program(df)     program not found on the machine
    common_functions.php     158     find_program(mount)     program not found on the machine

    What can i do?

    Tobias

     
  • magman1994

    magman1994 - 2012-05-28

    Any person has a solution to the situation above?

     
  • Mieczysław Nalewaj

    This is an old version of the program and the system SUSE, it is difficult to refer to this at the moment when the phpsysinfo is version 3.0.17.

     
  • magman1994

    magman1994 - 2012-05-28

    I have tried to install the update one. It is the same. That's why I opt to be back to the old version.
    The server is under cpanel control without SSH.
    Which version shall I upload and config.?
    Thousands thanks

     
  • magman1994

    magman1994 - 2012-05-29

    Thanks!
    I installed the stable one.
    The errors are:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    file_exists(/proc/sys/kernel/hostname)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 578 in function build()
    ./includes/os/class.Linux.inc.php on line 46 in function _hostname()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/sys/kernel/hostname", NULL, 1 )

    file_exists(/proc/version)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 579 in function build()
    ./includes/os/class.Linux.inc.php on line 91 in function _kernel()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/version", "", 1 )

    file_exists(/proc/uptime)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 580 in function build()
    ./includes/os/class.Linux.inc.php on line 110 in function _uptime()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/uptime", NULL, 1 )

    file_exists(/proc/cpuinfo)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 582 in function build()
    ./includes/os/class.Linux.inc.php on line 204 in function _cpuinfo()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/cpuinfo", NULL )

    file_exists(/proc/net/dev)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 587 in function build()
    ./includes/os/class.Linux.inc.php on line 434 in function _network()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/net/dev", NULL )

    file_exists(/proc/meminfo)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 588 in function build()
    ./includes/os/class.Linux.inc.php on line 469 in function _memory()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/meminfo", NULL )

    file_exists(/proc/loadavg)

    the file does not exist on your machine

    ./xml.php on line 45
    ./includes/output/class.WebpageXML.inc.php on line 138 in function run()
    ./includes/xml/class.XML.inc.php on line 456 in function getXml()
    ./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.Linux.inc.php on line 590 in function build()
    ./includes/os/class.Linux.inc.php on line 134 in function _loadavg()
    ./includes/class.CommonFunctions.inc.php on line 191 in function rfts( "/proc/loadavg", NULL )

     
  • Erkan

    Erkan - 2012-05-29

    Hi,

    I think this is a permission problem on your system. Check your php.ini (maybe open_basedir ?)

     
  • magman1994

    magman1994 - 2012-05-29

    I can access the server via cpanel only. Where can I find the php.ini?

     
  • Mieczysław Nalewaj

    /etc/php.ini
    or
    /etc/php5/apache2/php.ini

     
  • magman1994

    magman1994 - 2012-05-29

    Thanks, I can find the /etc folder under my domain. But the folder is empty. Where can I get the php.ini file/

     
  • Mieczysław Nalewaj

    Well, you have a problem, php security and user accounts are blocking access to the folder where the php.ini to change the security. The only solution is to access the server in a different way, via ssh, telnet or the console.

     
  • magman1994

    magman1994 - 2012-05-29

    I have uploaded  a php.ini file to /etc/. Still nothing can be shown via phpmyadmin.

     
  • Mieczysław Nalewaj

    After changing the php.ini you must restart the daemon httpd (apache) or a server.

     
  • magman1994

    magman1994 - 2012-05-29

    We are in a reseller plan and fail to request any restart of a server. Moreover, I m not sure if it is the correct php.ini file.