Section 3 — Preparing the System
Before installing phpBB, the server must be updated and the required software components must be installed and running. This section covers the initial preparation steps needed to ensure the system is ready for the phpBB deployment process.
3.1 Update System Packages
Begin by updating the package index and installing the latest available system updates:
Code: Select all
sudo apt update && sudo apt upgrade -y
Keeping the system current ensures compatibility with PHP, Apache, and MariaDB packages used later in the installation.
3.2 Install and Enable PHP‑FPM
Install PHP 8.4 and the required FPM service:
After installation, verify that the PHP‑FPM service is running:
If the service is not active, start it:
3.3 Install and Start MariaDB
Install the MariaDB server package:
Verify that the database service is running:
If necessary, start the service:
3.4 Install Apache and Required Modules
Install Apache along with the modules required for PHP‑FPM integration and HTTPS support:
Code: Select all
sudo apt install apache2 libapache2-mod-fcgid
sudo a2enmod proxy_fcgi setenvif rewrite ssl http2 headers
sudo systemctl restart apache2
These modules enable FastCGI processing, URL rewriting, secure connections, and modern HTTP features.
3.5 Create the Web Root Directory
Create the directory where phpBB will be installed:
This directory will serve as the document root for the phpBB virtual host configured later in the guide.