Raspberry Pi

Getting Raspberry Pi System Information Through phpSysInfo

phpSysInfo is a customizable PHP-based utility that displays the system information on your system browser. You can get the software and hardware-related information such as operating system, number of processors, attached USB devices, kernel version and much more. It’s a quiet useful tool for Linux systems and if you want to get information about your Raspberry Pi device, you can easily install this tool from this article’s guidelines.

Getting Raspberry Pi System Information Through phpSysInfo

Before moving towards installing phpSysInfo on Raspberry Pi, make sure that your system is updated, which you can confirm from the following command:

$ sudo apt update && sudo apt upgrade -y

Through the above command, the system will first check for updates and install them if some packages need upgrading.

After updating your system, you can install phpSysInfo on Raspberry Pi from the following command:

$ sudo apt install phpsysinfo -y

Wait till the system installs this utility. In case there is any dependency error, run the following command to install them:

$ sudo apt install apache2 php libapache2-mod-php -y

After completing the installation, you must link the folder to the location of the website using the following command:

$ sudo ln -s /usr/share/phpsysinfo /var/www/html

Once you have successfully linked the folder, it’s now time to find your Raspberry Pi IP address from the following command:

$ hostname -I

To access the phpSysInfo on any browser, you should enter the following address:

http://<Pi_IP>/phpsysinfo

Replace the <Pi_IP> with the IP address of the Raspberry Pi:

http://192.168.18.2/phpsysinfo

The above address will open the phpSysInfo dashboard on your browser and there you will see different information related to your Raspberry Pi device.

Remove phpSysInfo on Raspberry Pi

If you want to remove phpSysInfo from your Raspberry Pi system, just hit the following command in the terminal:

$ sudo apt remove phpsysinfo -y

Conclusion

The phpSysInfo is a PHP-based utility used to find any Linux system’s system information. You can install it on your Raspberry Pi system directly from the source Raspberry Pi repository list using “apt” installation command. After finding the Raspberry Pi IP address through the “hostname -I” command, you can access the phpSysInfo dashboard on your system browser and see the information related to your Raspberry Pi device.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.