This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb13:apache [2026/05/18 15:49] – [PHP Installation] Bernard Condrau | deb13:apache [2026/05/18 23:00] (current) – [Apache 2.4 and PHP 8.4] Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Apache 2.4 and PHP 8 ====== | + | ====== Apache 2.4 and PHP 8.4 ====== |
| + | add the following:< | ||
| + | SetEnvIfNoCase X-Forwarded-Proto https HTTPS=on</ | ||
| ===== Apache 2.4 Installation ===== | ===== Apache 2.4 Installation ===== | ||
| - Install apache 2.4< | - Install apache 2.4< | ||
| Line 9: | Line 11: | ||
| - Install and configure [[deb11: | - Install and configure [[deb11: | ||
| - If you are migrating from an old server, follow the [[deb11: | - If you are migrating from an old server, follow the [[deb11: | ||
| + | - Run '' | ||
| ===== Apache Settings ===== | ===== Apache Settings ===== | ||
| Line 27: | Line 29: | ||
| ===== PHP Installation ===== | ===== PHP Installation ===== | ||
| - | - Install packages< | + | - Download the GPG key:< |
| - | $ sudo apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https | + | $ curl -sSLo / |
| - | - Download | + | - Add the repository to your sources< |
| + | - Install the desired PHP version, where V is the major and v is the minor version number, for example 8.4< | ||
| + | $ sudo apt install php8.4</ | ||
| - | - Add the SURY repository to your system< | ||
| - | - Import the repository key< | ||
| - | - Install the desired PHP version, where V is the major and v is the minor version number, for example 7.4 or 8.1< | ||
| - | $ sudo apt install phpV.v</ | ||
| - Enable modules:< | - Enable modules:< | ||
| $ sudo a2enmod proxy | $ sudo a2enmod proxy | ||