A Debian web server: Apache, PostgreSQL, PHP
Writing an installation guide in English for a Debian 12 server running Apache, PostgreSQL and PHP, validated from the host machine.
CompletedSystems and networksSolo2025
Context
An individual project: writing, in English, an installation guide for a Debian 12 server running Apache, PostgreSQL and PHP. The server had to be working and reachable from the host machine. The exercise combined system administration and technical writing.
Goals
- Install and configure Apache to serve web pages.
- Install and configure PostgreSQL to manage databases.
- Install and configure PHP to query the database from web pages.
- Check that the server is reachable from the host machine.
- Document every step in a guide written in English.
Implementation
Phase 1: preparation
I installed QEMU/KVM for emulation, downloaded the Debian 12 ISO and checked its integrity, then ran the graphical installer: language, locale, keyboard, hostname, root password and user creation. After partitioning, I installed the standard system utilities, without a desktop environment, and the GRUB boot loader.
Phase 2: installing the services
- Apache: installed it with
apt-get install apache2, started it, checked the service status and set up port forwarding to reach it from the host. - PostgreSQL: installed it with
apt-get install postgresql, created a user and a database, then opened external connections by editingpostgresql.confandpg_hba.conf. - PHP: installed
php,libapache2-mod-phpandphp-pgsql, then created aninfo.phpfile to validate the configuration.
Phase 3: validation
From the host, I reached the Apache server at http://localhost:8080,
connected to PostgreSQL and ran queries, then managed the database through the
phpPgAdmin web interface. Every step was documented in English, with
screenshots.
Results
The guide makes it possible to rebuild a complete Debian 12 server step by step, and the resulting server serves dynamic pages that query the database. Beyond system administration, this project made me practice technical writing in English, where the slightest imprecision makes a step impossible to reproduce.
Skills used
SAÉ 2.03 · Installing network services
Administer complex networked computer systems
Level 1 · Install and configure a workstation
- AC13.02 Use the basic features of a multitasking, multi-user system
- AC13.03 Install and configure an operating system and development tools
- AC13.04 Configure a workstation on a corporate network