Kiel malinstali kaj reinstali kiam Apache2 raportas eraron? Apache servo yum komando por forigi kaj reinstali

Cifereca merkatigisto instalis la kontrolpanelon de CWP7 kaj Apache 2.4.25 sur Linuksa servilo , sed la Apache-servo ne ekfunkciis, rezultante en la jena eraro: ▼

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.

Kiel malinstali kaj reinstali kiam Apache2 raportas eraron?

Kiel malinstali kaj reinstali kiam Apache2 raportas eraron? Apache servo yum komando por forigi kaj reinstali

Tial, la servo Apache estis malinstalita kaj forigita en CentOS 7.

Enigu la jenan CWP-malinstalon forigi Apache-servan komandon ▼

yum remove cwp-httpd

Apache servo yum komando por forigi kaj reinstali

Paŝo 1: Instalu la servon Apache per la komando yum.

Post malinstali CWP kaj forigi la Apache-servon, uzu la yum-komandon por reinstali la Apache-servon▼

yum install cwp-httpd

Paŝo 2: Aktivigu Apache, kio postulas lanĉi la Apache-servon.

Enigu la sekvan komandon en SSH▼

systemctl start httpd

Paŝo 3: Poste, agordu la Apache-servon por komenciĝi kiam la sistemo startas:

systemctl enable httpd

Paŝo 4: Kontrolu la staton de la servo Apache

Montru informojn pri Apache kaj rigardu la staton de la nuna funkcianta Apache-servo:

systemctl status httpd

 

Lasu komenton

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

Rulumu al Supro