Artikel Verzeechnes
En digitale Marketingsexpert huet CWP7 Control Panel Apache 2.4.25 op engem Linux- Server installéiert , awer den Apache-Service konnt net starten, wat zu de folgende Feeler gefouert huet: ▼
httpd.service - Web server Apache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2022-04-13 05:21:29 EST; 4min 53s ago Process: 12087 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE) Apr 13 05:21:29 www.etufo.org systemd[1]: Starting Web server Apache... Apr 13 05:21:29 www.etufo.org apachectl[12087]: AH00526: Syntax error on line 12 of /usr/local/apache/conf/sharedip.conf: Apr 13 05:21:29 www.etufo.org apachectl[12087]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration Apr 13 05:21:29 www.etufo.org systemd[1]: httpd.service: control process exited, code=exited status=1 Apr 13 05:21:29 www.etufo.org systemd[1]: Failed to start Web server Apache. Apr 13 05:21:29 www.etufo.org systemd[1]: Unit httpd.service entered failed state. Apr 13 05:21:29 www.etufo.org systemd[1]: httpd.service failed.
Wéi deinstalléieren an nei installéieren wann Apache2 e Feeler bericht?

Dofir gouf den Apache-Service op CentOS 7 deinstalléiert an ewechgeholl.
Gitt de folgenden CWP Uninstall ewechhuelen Apache Service Kommando ▼
yum remove cwp-httpd
Apache Service yum Kommando fir ze läschen an nei z'installéieren
Schrëtt 1: Apache Service mat dem yum Kommando installéieren.
Nodeems Dir CWP deinstalléiert an den Apache Service geläscht hutt, benotzt de yum Kommando fir den Apache Service nei z'installéieren▼
yum install cwp-httpd
Schrëtt 2: Apache aktivéieren, wat erfuerdert datt den Apache Service gestart gëtt.
Gitt de folgende Kommando an SSH▼
systemctl start httpd
Schrëtt 3: Als nächst, konfiguréiert den Apache Service fir ze starten wann de System boot:
systemctl enable httpd
Schrëtt 4: Den Apache-Servicestatus kontrolléieren
Weist Informatioun iwwer Apache a kuckt de Status vum aktuellen Apache Service:
systemctl status httpd
Hoffentlech ass den Artikel "How to Deinstall and Reinstall Apache2 When Errors? Deleting and Reinstalling Apache Service Using the yum Command", deen um Blog vum Chen Weiliang ( https://www.chenweiliang.com/ ) gedeelt gouf, Iech hëllefräich.
Deelt gären de Link vun dësem Artikel: https://www.chenweiliang.com/cwl-27525.html
