User Tools

Site Tools


apache2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apache2 [2025/02/26 00:10] – [Ubuntu 24.04 LTS + Apache2 + PHP installarion and setting] jianwuapache2 [2025/03/13 12:22] (current) – [Ubuntu 24.04 LTS + Apache2 + PHP installarion and setting] jianwu
Line 1: Line 1:
-[[https://pctresearch.com/|{{:banner_image.jpg?nolink&800|}}]]+[[https://pctresearch.com/|{{:wiki_banner.jpg?nolink&800|}}]]
 ===== 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/ufw/ufw.conf+$ git diff /etc/ufw/ufw.conf
 diff --git a/etc/ufw/ufw.conf b/etc/ufw/ufw.conf diff --git a/etc/ufw/ufw.conf b/etc/ufw/ufw.conf
 index 8336b91..28fe534 100644 index 8336b91..28fe534 100644
Line 149: Line 149:
 </code> </code>
  
-@@@@@@@@@@@@@@@@@@@@ 
-(a2enmod is not necessary.) 
-<code Bash> 
-a2enmod 
-script that enables the specified module within the apache2 configuration. It does this by creating symlinks within  /etc/apache2/mods-enabled. 
-a2dismod 
-disables a module by removing those symlinks.  
-</code> 
-@@@@@@@@@@@@@@@@@@@@ 
 ==== 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:
 ====/etc/apache2/mods-enabled/dir.conf==== ====/etc/apache2/mods-enabled/dir.conf====
 <code Bash> <code Bash>
-        DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm+DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
 </code> </code>
  
Line 396: Line 387:
 </code> </code>
  
-==== Creating self-signed SSL certificates ====+===== Creating self-signed SSL certificates =====
 <code Bash> <code Bash>
 $ apt list --installed 2>/dev/null | grep -i ssl-cert $ apt list --installed 2>/dev/null | grep -i ssl-cert
Line 485: Line 476:
 ^--force-overwrite|Always create a new certificate, even if the file already exists. | ^--force-overwrite|Always create a new certificate, even if the file already exists. |
 So, So,
-<code Bash>+<code Text>
 $ sudo make-ssl-cert --force-overwrite /usr/share/ssl-cert/ssleay_wweb.cnf /etc/ssl/private/wweb_cert-file.crt $ sudo make-ssl-cert --force-overwrite /usr/share/ssl-cert/ssleay_wweb.cnf /etc/ssl/private/wweb_cert-file.crt
 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:
 │                                                                         │ │                                                                         │
 │                   <Ok>                       <Cancel>                   │ │                   <Ok>                       <Cancel>                   │
-└────────────────────────────────────┘+─────────────────────────────────────────────────────────────────────────┘
  
-┌────────────────┤ 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:
 │                                <Ok>                                    <Cancel>                               │ │                                <Ok>                                    <Cancel>                               │
 │                                                                                                               │ │                                                                                                               │
-└───────────────────────────────────────────────────────┘+───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 </code> </code>
 <code Bash> <code Bash>
apache2.1740496201.txt.gz · Last modified: 2025/02/26 00:10 by jianwu