Please open issues on github
PHPServerMonitor 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.
Docker allows you to package an application with all of its dependencies into a standardized unit for software development.
More information :
This is the official repository for PHPServerMonitor It will be updated every time there is a new version of PHPServerMonitor available, or you can build yourself with.
## Build and Deploy PHPServerMonitor with Docker
# Working Dir
mkdir -p "/tmp/php-server-monitor"
cd "/tmp/php-server-monitor"
# Clone Git Repo
git clone https://github.com/phpservermon/docker-phpservermonitor.git phpservermonitor
cd phpservermonitor/
# Build Docker Image
docker build --no-cache \
--tag "phpservermonitor:3.5.2" \
--tag "phpservermonitor:latest" \
--file Dockerfile .
# Generate Random Passwords
export "MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)" "MYSQL_PASSWORD=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
# Deploy with Docker-Compose
docker-compose up -d
# Start Containers w/ Random Passwords
export "MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)" "MYSQL_PASSWORD=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
# Create a network
docker network create -d psm
# phpservermonitor
docker run -d --name phpservermonitor \
--network psm \
--restart always \
-v /sessions \
--dns=192.168.3.8 \
-p 8080:80 \
-e TIME_ZONE='Europe/Amsterdam' \
-e PSM_REFRESH_RATE_SECONDS=15 \
-e PSM_AUTO_CONFIGURE=true \
-e MYSQL_HOST=db \
-e MYSQL_USER=phpservermonitor \
-e MYSQL_PASSWORD=${MYSQL_PASSWORD} \
-e MYSQL_DATABASE=phpservermonitor \
-e MYSQL_DATABASE_PREFIX=psm_ \
phpservermonitor:latest
# phpservermonitor_mariadb
docker run -d --name phpservermonitor_mariadb \
--network psm --network-alias db \
--restart always \
-e MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} \
-e MYSQL_USER=phpservermonitor \
-e MYSQL_PASSWORD=${MYSQL_PASSWORD} \
-e MYSQL_DATABASE=phpservermonitor \
mariadb
Configuration should be automatic if the envirmental varable is set PSM_AUTO_CONFIGURE=true
. Otherwise the configuration window should be prepopulated to the following.
- Database Host: db
- Database Name: phpservermonitor
- Database User: phpservermonitor
- Data Password: YOUR_PASSWORD
- Table Previx: psm_
On Windows machines the PING will be checked using socket. For all other machines this will be checked using exec() and the terminal PING command.