redhat:web-server-redhat:apache:apache24-on-redhat

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:web-server-redhat:apache:apache24-on-redhat [2020/03/05 14:16] michaelredhat:web-server-redhat:apache:apache24-on-redhat [2020/03/05 15:02] (current) – [Additional setup] michael
Line 74: Line 74:
  
 <WRAP center box 100%> <WRAP center box 100%>
-==== Grund Konfiguration ==== +==== Basic configuration ==== 
-Im folgendenwird der Apache Webserver erst einmal grundlegend konfiguriertDazuwird die ''httpd.conf'' editiert und folgende Änderungen durchgeführt.+In the followingthe Apache web server will be configured in a basic wayTo do thisedit the ''httpd.conf'' and make the following changes.
  
 <code> <code>
Line 82: Line 82:
  
 <sxh bash; first-line: 1> <sxh bash; first-line: 1>
-Zeile 86: setzen der Server-Admin Email Adresse +line 86: set the server admin email address 
-ServerAdmin root@blackgate.org+ServerAdmin root@michu-it.com
  
-Zeile 95: festlegen des Server-Namen +Line 95: set the server name 
-ServerName www.blackgate.org+ServerName www.michu-it.com
  
-Zeile 151: 'none' auf 'All' wechseln+Line 151: Change 'none' to 'All'
 AllowOverride All AllowOverride All
  
-#Folgendes wird dann noch am Schluss der Konfiguration eingetragen: +The following is entered at the end of the configuration and serves as a hardening purpose:
 ServerTokens Prod ServerTokens Prod
 KeepAlive On KeepAlive On
 </sxh> </sxh>
  
-Nun kann der Webserver auch bereits schon gestartet werden:+After each configuration change the apache.service must be reloaded or restarted:
 <code> <code>
-# systemctl start httpd  +# systemctl restart httpd
-# systemctl enable httpd+
 </code>  </code> 
- 
-''**Falls nun auch [[redhat:firewalld-redhat|Firewalld]] aktiv ist**'', müssen noch die Ports für den Webserver freigeschalten werden. Dies wird folgendermassen gemacht: 
- 
-<code> 
-# firewall-cmd --add-service=http --permanent 
-# firewall-cmd --add-service=https --permanent  
- 
-# firewall-cmd --reload  
-</code> 
 </WRAP> </WRAP>
  
Line 117: Line 106:
  
 <WRAP center box 100%> <WRAP center box 100%>
-==== Testseite erstellen ==== +==== Create test page ==== 
-Zum testen, des Apache Webserverskann nun ganz einfach und schnell eine kleine htlm-Datei wie folgt erstellt werden:+To test the Apache web servera small htlm file can now be created quickly and easily as follows:
  
 <code> <code>
Line 129: Line 118:
     <body>     <body>
         <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">         <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">
-        Test Page+        Test Page - Under Construction.
         </div>         </div>
     </body>     </body>
Line 137: Line 126:
 </WRAP> </WRAP>
  
-===== Additional: Configuring .... ===== 
  
-At this point, you should be able to access Apache with a web browser on ''port 80''.+===== Additional setup =====
  
 +Further documentation can be found under the individual links
  
----+  * [[redhat:web-server-redhat:apache:letsencrypt-redhat|Secure Apache with Let's Encrypt on CentOS 8]] 
- +  * [[redhat:proxy-server-redhat:reverseproxy-redhat|Apache 2.4 als Reverse Proxy Konfigurieren]] 
- +  * [[redhat:web-server-redhat:virtual-hosts-redhat|Configure a virtual host directives for your domain in apache.]] 
- +  
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-FIXME +
- +
- +
- +
- +
-<WRAP center box 100%> +
-==== Installation von Apache 2.4 mit HTTP/2 und PHP 7.2 ==== +
- +
-<code> +
-# curl -sSL https://www.blackgate.org/deployment/base_configuration_blackGATE.sh | bash cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm ---qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo +
-# yum -y install https://mirror.webtatic.com/yum/el7/webtatic-release.rpm +
- +
-# yum update +
-# yum install httpd php72w-fpm php72w-cli php72w-common php72w-gd php72w-intl php72w-mbstring php72w-mysql php72w-pecl-geoip php72w-pecl-imagick php72w-process php72w-xml +
- +
-# mkdir /var/lib/php/session +
-# chown -R apache:apache /var/lib/php +
- +
-# firewall-cmd --permanent --zone=public --add-service=http +
-# firewall-cmd --reload +
-</code> +
- +
-<code> +
-# vim /etc/php-fpm.d/www.conf +
-</code> +
- +
-<code> +
-# vim /etc/httpd/conf.d/php.conf +
-</code> +
- +
-<code> +
-# systemctl start httpd php-fpm +
-# systemctl enable httpd php-fp +
-</code> +
- +
-<code> +
-# vim /var/www/html/info.php +
-</code> +
- +
-----+
  
  
  
  • redhat/web-server-redhat/apache/apache24-on-redhat.1583414192.txt.gz
  • Last modified: 2020/03/05 14:16
  • by michael