apache2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| apache2 [2025/02/26 00:10] – [Ubuntu 24.04 LTS + Apache2 + PHP installarion and setting] jianwu | apache2 [2025/03/13 12:22] (current) – [Ubuntu 24.04 LTS + Apache2 + PHP installarion and setting] jianwu | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | [[https:// | + | [[https:// |
| ===== Ubuntu 24.04 LTS + Apache2 + PHP installarion and setting ===== | ===== Ubuntu 24.04 LTS + Apache2 + PHP installarion and setting ===== | ||
| ^OS|Ubuntu 24.04.2 LTS| | ^OS|Ubuntu 24.04.2 LTS| | ||
| ^apache2|2.4.58-1ubuntu8.5| | ^apache2|2.4.58-1ubuntu8.5| | ||
| ^PHP|PHP 8.3.6| | ^PHP|PHP 8.3.6| | ||
| - | ;!: The PHP and the apache2 version may have changed since this article was written. | + | :!: The PHP and the apache2 version may have changed since this article was written. |
| Line 105: | Line 105: | ||
| ==== Set to start ufw on boot ==== | ==== Set to start ufw on boot ==== | ||
| <code Diff> | <code Diff> | ||
| - | $ git diff etc/ | + | $ git diff /etc/ |
| diff --git a/ | diff --git a/ | ||
| index 8336b91..28fe534 100644 | index 8336b91..28fe534 100644 | ||
| Line 149: | Line 149: | ||
| </ | </ | ||
| - | @@@@@@@@@@@@@@@@@@@@ | ||
| - | (a2enmod is not necessary.) | ||
| - | <code Bash> | ||
| - | a2enmod | ||
| - | script that enables the specified module within the apache2 configuration. It does this by creating symlinks within | ||
| - | a2dismod | ||
| - | disables a module by removing those symlinks. | ||
| - | </ | ||
| - | @@@@@@@@@@@@@@@@@@@@ | ||
| ==== Create user wweb ==== | ==== Create user wweb ==== | ||
| :!: You can change the user name whatever you want. | :!: You can change the user name whatever you want. | ||
| Line 279: | Line 270: | ||
| ====/ | ====/ | ||
| <code Bash> | <code Bash> | ||
| - | | + | DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm |
| </ | </ | ||
| Line 396: | Line 387: | ||
| </ | </ | ||
| - | ==== Creating self-signed SSL certificates ==== | + | ===== Creating self-signed SSL certificates |
| <code Bash> | <code Bash> | ||
| $ apt list --installed 2>/ | $ apt list --installed 2>/ | ||
| Line 485: | Line 476: | ||
| ^--force-overwrite|Always create a new certificate, | ^--force-overwrite|Always create a new certificate, | ||
| So, | So, | ||
| - | < | + | < |
| $ sudo make-ssl-cert --force-overwrite / | $ sudo make-ssl-cert --force-overwrite / | ||
| Package configuration | Package configuration | ||
| - | ┌────────┤ Configure an SSL Certificate. ├───────────┐ | + | ┌─────────────────┤ Configure an SSL Certificate. ├───────────────────────┐ |
| │ Please enter the host name to use in the SSL certificate. | │ Please enter the host name to use in the SSL certificate. | ||
| │ │ | │ │ | ||
| Line 498: | Line 489: | ||
| │ │ | │ │ | ||
| │ < | │ < | ||
| - | └────────────────────────────────────┘ | + | └─────────────────────────────────────────────────────────────────────────┘ |
| - | ┌────────────────┤ Configure an SSL Certificate. ├──────────────────────┐ | + | ┌──────────────────────────────┤ Configure an SSL Certificate. ├────────────────────────────────────────────────┐ |
| │ Please enter any additional names to use in the SSL certificate. | │ Please enter any additional names to use in the SSL certificate. | ||
| │ │ | │ │ | ||
| Line 520: | Line 511: | ||
| │ < | │ < | ||
| │ │ | │ │ | ||
| - | └───────────────────────────────────────────────────────┘ | + | └───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
| </ | </ | ||
| <code Bash> | <code Bash> | ||
apache2.1740496201.txt.gz · Last modified: 2025/02/26 00:10 by jianwu