Anyè Atik
WiMaketing EntènètAnplwaye nanLinuxSou sèvè a, enstalePanèl kontwòl CWP7 Apache 2.4.25, men sèvis Apache a pa kòmanse, erè sa a parèt▼
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 konsa, nanCentOS 7 Dezenstale epi efase sèvis Apache la.
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:yum lòd pou enstale sèvis Apache
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:Pou aktive Apache, ou bezwen kòmanse sèvis Apache la.
Antre kòmandman sa a nan SSH▼
systemctl start httpd
Etap 3:Apre sa, mete sèvis Apache pou kòmanse nan demaraj sistèm lan:
systemctl enable httpd
Etap 4:Gade estati sèvis Apache
Montre enfòmasyon sou Apache epi wè estati sèvis Apache k ap fonksyone kounye a:
systemctl status httpd
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) pataje "Ki jan yo dezenstale ak réinstaller lè Apache2 rapòte yon erè? Apache sèvis yum lòd pou efase ak réinstaller" se itil pou ou.
Byenvini pataje lyen atik sa a:https://www.chenweiliang.com/cwl-27525.html
Byenveni nan chanèl Telegram blog Chen Weiliang a pou jwenn dènye mizajou yo!
📚 Gid sa a gen anpil valè, 🌟Sa a se yon opòtinite ki ra, pa rate li! ⏰⌛💨
Pataje epi like siw renmen!
Pataje w ak renmen ou se motivasyon kontinyèl nou!