LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP Server information (https://www.linuxquestions.org/questions/linux-software-2/php-server-information-193305/)

fuelinjection 06-14-2004 08:15 AM

PHP Server information
 
Hi All,

I'm looking for a good piece of software written in PHP that will supply me with information on my server. i.e. system resource information, drive information swap file information, a list of running services and their status? i.e. apache, mysql, php.

I want to be able to reteive this information over the web in a browser.

iluvatar 06-14-2004 09:31 AM

You may want to write it yourself. You may use the php function echo(shell_exec('command')) to execute commands on your server and show the output directly on the page. For basic info you may want to use phpSysInfo.

greetz,
.-=~ iluvatar ~=-.

edit: for example:
Code:

<html>
<pre>
<?php echo(shell_exec('ps faux')); ?>
</pre>
</html>

will show all running processes ;)

trickykid 06-14-2004 10:26 PM

http://phpsysinfo.sourceforge.net/


All times are GMT -5. The time now is 02:28 AM.