Difference between revisions of "PhpSysInfo"

From Amahi Wiki
Jump to: navigation, search
m (phpSysInfo was missing the cap "S" and "I" in the tar transaction. Changed "nano config.conf" for nano config.php.)
Line 15: Line 15:
 
4. Unpack the phpsysinfo tarball with the tar command:  
 
4. Unpack the phpsysinfo tarball with the tar command:  
  
'''tar -zxvf phpsysinfo-3.0-RC6.tar.gz'''   
+
'''tar -zxvf phpSysInfo-3.0-RC6.tar.gz'''   
  
 
This will create a phpsysinfo directory and unpack all the files.
 
This will create a phpsysinfo directory and unpack all the files.
Line 22: Line 22:
 
5. Remove the tarball since it will no longer be needed  
 
5. Remove the tarball since it will no longer be needed  
  
'''rm -rf phpsysinfo-3.0-RC6.tar.gz'''
+
'''rm -rf phpSysInfo-3.0-RC6.tar.gz'''
  
  
Line 34: Line 34:
 
8. Use nano or another editor to modify config.php as desired.   
 
8. Use nano or another editor to modify config.php as desired.   
  
'''nano config.conf'''
+
'''nano config.php'''
  
  

Revision as of 03:34, 25 December 2008

PHP SysInfo

PHP SysInfo is a php script that displays information about the host being accessed. Things like uptime and CPU memory are displayed using phpsysinfo. To run it from your hda:

1. Navigate to the /var/hda/web-apps directory on your hda.

2. Search for a phpsysinfo tarball through a web browser. You can find one at http://phpsysinfo.sourceforge.net/

3. Download the tarball into the web-apps directory using wget or another method. For example:

wget http://downloads.sourceforge.net/phpsysinfo/phpSysInfo-3.0-RC6.tar.gz


4. Unpack the phpsysinfo tarball with the tar command:

tar -zxvf phpSysInfo-3.0-RC6.tar.gz

This will create a phpsysinfo directory and unpack all the files.


5. Remove the tarball since it will no longer be needed

rm -rf phpSysInfo-3.0-RC6.tar.gz


6. Enter the new phpsysinfo directory: cd phpsysinfo

7. Next, copy the php new configuration file to config.php using the cp command:

cp config.php.new config.php


8. Use nano or another editor to modify config.php as desired.

nano config.php


9. Save and close the config.php file. Go to your hda Web Apps tab in a browser (http://setup then select Web Apps). Click on New Web App.

10. Enter "phpsysinfo" in the Name field. The Root Path field will automatically append the directory name onto the /var/hda/web-apps directory.

11. Click Create. A URL will be created and displayed.

12. PHPSysInfo should now be succesfully installed and running. To verify, click on the URL. If you are presented with your system information, phpsysinfo has been successfully installed.