Running PHP Server Monitor in Docker

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=GOeDUQMrt8Q



Duration: 2:09
498 views
12


#PHP Server Monitor #Docker #Linux

Full steps can be found at https://i12bretro.github.io/tutorials...

--------------------------------------------------------------------
What is PHP Server Monitor
--------------------------------------------------------------------
PHP Server Monitor is a script that checks whether your websites and servers are up and running. It comes with a web based user interface where you can manage your services and websites, and you can manage users for each server with a mobile number and email address. - https://www.phpservermonitor.org/
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         add docker gpg key
         curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         add the current user to the docker group
         sudo usermod -aG docker $USER
         reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running PHP Server Monitor
--------------------------------------------------------------------
   01. Now that Docker is installed, run the following commands to setup the PHP Server Monitor Docker container and run it
         run the PHP Server Monitor docker container
         create working directories
         mkdir /home/$USER/docker/mariadb -p
         set owner of working directories
         sudo chown "$USER":"$USER" /home/"$USER"/docker -R
         create phpServerMonitor network
         docker network create phpServerMonitor
         run the php server monitor docker container
         docker run -d --name phpservermonitor --network phpServerMonitor -p 8080:80 -e MYSQL_HOST=db -e MYSQL_USER=servermon_rw -e MYSQL_PASSWORD=Serv3rM0n! -e MYSQL_DATABASE=server_monitor -e MYSQL_DATABASE_PREFIX= -e TIME_ZONE='America/New_York' -e PSM_REFRESH_RATE_SECONDS=60 -e PSM_AUTO_CONFIGURE=true -v /sessions --restart=unless-stopped phpservermonitor/phpservermon:latest
         run the mariadb docker container
         docker run -d --name mariadb --network phpServerMonitor --network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=servermon_rw -e MYSQL_PASSWORD=Serv3rM0n! -e MYSQL_DATABASE=server_monitor -v /home/$USER/docker/mariadb:/var/lib/mysql --restart=unless-stopped mariadb:latest
   02. Open a web browser and navigate to http://DNSorIP:8080/install.php
   03. The PHP Server Monitor setup screen should be displayed
   04. Click the Let's Go button
   05. Create an administrator account by entering a username, password and email address ≫ Click Install
   06. After the installation completes click Go to your monitor
   07. Login with the administator account created earlier
   08. Welcome to PHP Server Monitor
 
Documentation:  https://hub.docker.com/r/phpservermon...
 


Connect with me and others ###
★ Discord:   / discord  
★ Reddit:   / i12bretro  
★ Twitter:   / i12bretro  







Tags:
Browser Based
Container
Containerize
Docker
Docker Container
Docker How To
Docker Installation Tutorial
Docker Made Easy
Docker Made Simple
Docker Simplified
Getting Started With Docker
Home Lab
Home Lab Ideas
Homelab
How To
Install Guide
Linux
PHP
PHP Server Monitor
PHPServerMonitor
Self-Hosted
Tutorial
Ubuntu
Web Based
Web Based Tools
i12bretro