Monitor the uptime of websites, servers and other network services with PHP Server Monitor

Monitor the uptime of websites, servers and other network services with PHP Server Monitor

Homei12bretroMonitor the uptime of websites, servers and other network services with PHP Server Monitor
Monitor the uptime of websites, servers and other network services with PHP Server Monitor
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
#PHPServerMonitor #Uptime #Linux

The full steps can be found at https://i12bretro.github.io/tutorials/0557.html

——————————————————————–
What is PHP Server Monitor?
——————————————————————–
PHP Server Monitor is a script that checks if your websites and servers are active. It has a web-based interface that allows you to manage your services and websites. It also allows you to manage users for each server with a mobile number and email address. – https://www.phpservermonitor.org/

——————————————————————–
installation
——————————————————————–
01. Log in to the Linux device
02. Run the following commands in a terminal:
# Update software repositories
sudo aptupdate
# Install software updates
sudo apt upgrade -y
# Install Apache HTTPD and MySQL
sudo apt install Apache2 MariaDB server MariaDB client -y
# Install PHP components
sudo apt install php7.3 libapache2-mod-php7.3 php7.3-curl php7.3-common php7.3-json php7.3-mysql php7.3-xml
# Configure the MySQL database
sudo su
mysql_secure_installation
03. Press Enter to log in as root
04. Type Y and press Enter to set a root password. Enter the password twice to confirm
05. Type Y and press Enter to remove anonymous users
06. Type Y and press Enter to disallow remote root login
07. Type Y and press Enter to remove the test database
08. Type Y and press Enter to reload the authorization tables
09. Run the following command to log in to MySQL:
mysql -u root -p
10. Authenticate yourself with the previously set root password
11. Run the following commands to create the database and database user
CREATE DATABASE server_monitor;
GRANT ALL ON server_monitor.* to "servermon_rw"@"localhost", IDENTIFIED BY "erv3rM0n!";
FLUSH PRIVILEGES;
EXIT;
exit
12. Proceed with the following commands to download and extract PHP Server Monitor in Apache webroot
# download the latest PHP Server Monitor
wget -O phpservermon.tar.gz https://github.com/phpservermon/phpservermon/releases/download/v3.5.2/phpservermon-3.5.2.tar.gz
# unpack the tar.gz
sudo tar xzvf phpservermon.tar.gz –directory /var/www/html
# rename the extracted folder
sudo mv /var/www/html/phpservermon-3.5.2 /var/www/html/monitor
# Create placeholder for config.php
sudo touch /var/www/html/monitor/config.php
# set the owner of the new monitor directory to www-data
sudo chown -R www-data:www-data /var/www/html/monitor
# Set the PHP timezone. Change the timezone as needed before running
sudo sed -i /"s/;date.timezone ///date.timezone America///New_York//" /etc/php/7.3/apache2/php.ini
# Restart the Apache2 service for the changes to take effect
sudo systemctl restart apache2
13. Open a web browser and navigate to http://DNSorIP/monitor/install.php
14. The PHP Server Monitor setup screen should appear
15. Click the Let's go button
16. Fill in the database connection information as follows
Database host: localhost
Database port: 3306
Database name: server_monitor
Database user: servermon_rw
Database password: erv3rM0n!
Table prefix:
17. Click Save Configuration
18. Refresh the page
19. Create an administrator account by entering a username, password and email address. Click Install
20. After the installation is complete, click Go to your monitor
21. Log in with the administrator account you created earlier
22. Welcome to PHP Server Monitor

Source: https://github.com/phpservermon/phpservermon

### Connect with me and others ###
Discord: https://discord.com/invite/EzenvmSHW8
Reddit: https://reddit.com/r/i12bretro
Twitter: https://twitter.com/i12bretro

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.