How to Install PHP Server Monitor on Windows 11

PHP Server Monitor is an open-source tool that monitors your servers' status, including uptime, CPU usage, memory usage, disk space, and network activities. It enables system admins to detect and resolve server issues before they turn into full-blown outages. In this tutorial, we will guide you through the steps to install PHP Server Monitor on your Windows 11 machine.

Prerequisites

Step 1 - Download PHP Server Monitor

Download the latest PHP Server Monitor release from the official website https://www.phpservermonitor.org/downloads/ and save the zip file to your computer.

Step 2 - Unzip PHP Server Monitor

Unzip the downloaded file to a location of your choice. For example, let's assume you have unzipped it to the C:\xampp\htdocs\phpservermonitor\ directory.

Step 3 - Create MySQL Database and User

Create a new MySQL database and user for PHP Server Monitor. You can use the following SQL commands to create a database named phpservermonitor and a user named phpservermonitoruser with a password your_password:

CREATE DATABASE phpservermonitor;
CREATE USER 'phpservermonitoruser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON phpservermonitor.* TO 'phpservermonitoruser'@'localhost';
FLUSH PRIVILEGES;

Step 4 - Configure PHP Server Monitor

Next, navigate to the directory C:\xampp\htdocs\phpservermonitor\inc\ and copy the file config.dist.php to config.php. Open the config.php file in a text editor.

Update the following information in the config.php file:

define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_NAME', 'phpservermonitor');
define('DB_USER', 'phpservermonitoruser');
define('DB_PASS', 'your_password');

Save and close the config.php file.

Step 5 - Run PHP Server Monitor Installer

Open your web browser and navigate to http://localhost/phpservermonitor/install/. The PHP Server Monitor installer will guide you through the installation process.

Follow the instructions and provide the requested information, including the administrator account name and password, and the SMTP server settings if you want to enable email notifications.

Once the installation is complete, remove the install directory from C:\xampp\htdocs\phpservermonitor\.

Step 6 - Access PHP Server Monitor

Now you can access PHP Server Monitor by navigating to http://localhost/phpservermonitor/ using your web browser.

Log in as the administrator using the credentials you provided in Step 5.

Congratulations! You have successfully installed PHP Server Monitor on Windows 11.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!