Prerequisites:
- An active EDIS Global VPS Hosting account.
- A VPS running Ubuntu 20.04 or later.
- Basic knowledge of terminal operations.
Step-by-step Installation:
1. System Update:
Always ensure your server is up-to-date with the latest packages:2. Apache Installation:
Begin by installing the Apache web server:3. PHP Installation:
To install PHP and necessary extensions:4. PostgreSQL and PostGIS Installation:
Install PostgreSQL along with some contrib packages:<VERSION>
with your PostgreSQL version, e.g., 13
for PostgreSQL 13.
5. Database Setup:
Switch to thepostgres
user and enter the PostgreSQL environment:
6. Securing Your Installation:
While setting up, always remember to secure your installations:- For Apache: Set up firewalls, disable directory listings, and use SSL certificates.
- For PostgreSQL: Change default PostgreSQL user passwords, restrict remote access, and regularly backup your database.
- Regularly update all components of your stack.