Ki jan yo dezenstale ak réinstaller lè Apache2 rapòte yon erè? Apache sèvis yum kòmand pou efase ak réinstaller

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è?

Ki jan yo dezenstale ak réinstaller lè Apache2 rapòte yon erè? Apache sèvis yum kòmand pou efase ak réinstaller

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

 

kòmantè

您的邮箱地址不会被公开。必填项已用*标注

Ki gen tèt