Anyè Atik
Yon spesyalis nan maketing dijital te enstale panèl kontwòl CWP7 ak Apache 2.4.25 sou yon sèvè Linux , men sèvis Apache a pa t ka demarre, sa ki te lakòz erè sa a: ▼
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.
Ki jan yo dezenstale ak réinstaller lè Apache2 rapòte yon erè?

Se poutèt sa, yo te dezinstale epi retire sèvis Apache a sou CentOS 7.
Antre sa a CWP dezenstalasyon retire lòd Apache sèvis ▼
yum remove cwp-httpd
Apache sèvis yum kòmand pou efase ak réinstaller
Etap 1: Enstale sèvis Apache a avèk kòmand yum nan.
Apre dezenstalasyon CWP ak efase sèvis Apache a, sèvi ak lòd yum pou réinstaller sèvis Apache la▼
yum install cwp-httpd
Etap 2: Aktive Apache, ki mande pou demarre sèvis Apache la.
Antre kòmandman sa a nan SSH▼
systemctl start httpd
Etap 3: Apre sa, konfigire sèvis Apache a pou l kòmanse lè sistèm nan demarre:
systemctl enable httpd
Etap 4: Tcheke estati sèvis Apache a
Montre enfòmasyon sou Apache epi wè estati sèvis Apache k ap fonksyone kounye a:
systemctl status httpd
Espere ke atik "Kijan pou dezenstale epi reenstale Apache2 lè gen erè? Efase epi reenstale sèvis Apache lè l sèvi avèk kòmand yum nan" ki pataje sou blog Chen Weiliang la ( https://www.chenweiliang.com/ ) ap itil ou.
Pa ezite pataje lyen atik sa a: https://www.chenweiliang.com/cwl-27525.html
