This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb13:apache [2026/08/21 12:59] – [PHP Settings] Bernard Condrau | deb13:apache [2026/11/15 09:03] (current) – [PHP Extensions] Bernard Condrau | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| - If you are migrating from an old server, follow the [[deb11: | - If you are migrating from an old server, follow the [[deb11: | ||
| - Run '' | - Run '' | ||
| + | |||
| ===== Apache Settings ===== | ===== Apache Settings ===== | ||
| + | ==== Basic configuration for your web root ==== | ||
| + | * Add your custom configuration file ''/ | ||
| + | # * this is a proxied server, check access rules on proxy | ||
| + | # * black list is created by bethico.com | ||
| + | # (c) bco, 2021-09-26 | ||
| + | < | ||
| + | Options -Indexes +FollowSymLinks | ||
| + | AllowOverride None | ||
| + | |||
| + | < | ||
| + | |||
| + | # allow access | ||
| + | Require all granted | ||
| + | |||
| + | # block ip addresses | ||
| + | Include / | ||
| + | </ | ||
| + | |||
| + | # block spiders | ||
| + | Include conf-available/ | ||
| + | </ | ||
| + | |||
| + | ErrorDocument 403 "< | ||
| + | </ | ||
| + | * Enable the configuration:< | ||
| + | * Check the configuration and fix errors if you have any:< | ||
| + | * Restart the web server:< | ||
| ==== Harden apache ==== | ==== Harden apache ==== | ||
| Line 46: | Line 74: | ||
| ===== PHP Extensions ===== | ===== PHP Extensions ===== | ||
| - | * PHP extensions for Joomla:< | + | * PHP extensions for Joomla:< |
| - | * PHP extensions for Wiki:< | + | * PHP extensions for Wiki:< |
| - | * PHP extensions for phpMyAdmin:< | + | * PHP extensions for phpMyAdmin:< |
| - | * PHP extensions for vps:< | + | * PHP extensions for vps:< |
| - | * Required for PHP7:< | + | * Restart the service:< |
| - | * Restart the service | + | |
| - | $ sudo service apache2 restart</ | + | |
| ===== Set or change PHP version ===== | ===== Set or change PHP version ===== | ||
| Line 68: | Line 94: | ||
| ===== Upgrade Sury certificates ===== | ===== Upgrade Sury certificates ===== | ||
| + | * If the keyring file was installed via older legacy instructions:< | ||
| + | sudo rm -f / | ||
| + | * Refresh your package manager:< | ||
| + | * Update to the fresh key:< | ||
| + | * Create the apt list file (debian 11=bullseye, | ||
| ===== PHP Settings ===== | ===== PHP Settings ===== | ||
| Line 75: | Line 106: | ||
| ==== php.ini ==== | ==== php.ini ==== | ||
| - | * < | + | * < |
| max_input_vars = 2000 | max_input_vars = 2000 | ||
| memory_limit = 512M | memory_limit = 512M | ||