PHP-Calendar wiki

Welcome to the php-calendar wiki!
Simple installation guide on ubuntu to get you started.

$ sudo apt install apache2
$ sudo apt install php7.4 php7.4-curl php7.4-pgsql php7.4-mysql
$ sudo systemctl apache2 mariadb
$ sudo systemctl apache2 mariadb

NOTE you will also need to have a working database installed and configured, here is a example to help you start.

QUICK MariaDB on Ubuntu Example
$ sudo apt update
$ sudo apt install mariadb-server
$ sudo mysql_secure_installation
$ sudo mariadb
MariaDB [(none)]> use mysql;
MariaDB [mysql]> GRANT ALL ON . TO 'calendar'@'localhost' IDENTIFIED BY 'mypass' WITH GRANT OPTION;
MariaDB [mysql]> exit
$ sudo systemctl restart mariadb
$ sudo systemctl status mariadb

QUICK PostgreSQL 12 on Ubuntu Example
$ sudo apt update
$ sudo apt install postgresql-12 postgresql-client-12 postgresql-client-common postgresql-common

UPDATE - /etc/postgresql/12/main/pg_hba.conf
Add this at the end!
local all postgres peer
host all all md5

UPDATE - /etc/postgresql/12/main/postgresql.conf
Add this at the end!
listen_addresses = '*'

$ sudo systemctl restart postgresql
$ sudo systemctl status postgresql

$ sudo -i -u postgres psql
postgres=# ALTER USER postgres with password 'new_pass';
postgres=# CREATE DATABASE calendardb;
postgres=# CREATE USER calendar WITH ENCRYPTED PASSWORD 'mypass';
postgres=# GRANT ALL PRIVILEGES ON DATABASE calendardb TO calendar;

Now the fun part, the actual calendar

$ cd /var/www/html
$ sudo wget -qO php-calendar_latest.tar
$ sudo tar xvf php-calendar_latest.tar
$ sudo chown -R www-data:www-data cal

Go to http://localhost/cal/


This is a simple bash script you can run at home or local network and show you all IP address with open ports. This script is going to run through IP range 1 to 254 through address 192.168.0.x The ports that will be checked are:SSH – 22HTTP – 80HTTPS – 443MYSQL – 3306RDP – 3389PRINTER […]