Running PHP Server Monitor in Docker @i12bretro
Running PHP Server Monitor in Docker  @i12bretro
Uploaded November 2023 | Updated November 2026, 3 hours ago
#PHP Server Monitor #Docker #Linux

Full steps can be found at i12bretro.github.io/tutorials/0558.html

--------------------------------------------------------------------
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. - 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 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)] 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:  hub.docker.com/r/phpservermonitor/phpservermon
 


### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
Running PHP Server Monitor in DockerConfigure SSH Key-Based Authentication on LinuxRun Dashy Application Dashboard in DockerContainerized Self-Hosted ACME Server with Step-CA in DockerSony PlayStation 4 Boot Animationi12bretro Plays the [Hated?] Video Background MusicRunning phpBB Bulletin Board/Forum in Docker on Ubuntu ServerQuickly Deploy an Apache/PHP/MySQL Development Environment in DockerInstall Invoice Plane - Invoice and Payment Manager - On LinuxRunning a MacOS 15 Sequoia VM in VMwareRun FocalBoard - Project and Task Management Platform - in DockerRoll Your Own Google Analytics Alternative with Umami on Windows
i12bretro |

Running PHP Server Monitor in Docker

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER