Directory artaigil
Stàlaich margaiche didseatach Pannal Smachd CWP7 Apache 2.4.25 air frithealaiche Linux , ach dh’fhàillig an t-seirbheis Apache tòiseachadh, agus dh’adhbharaich seo am mearachd a leanas: ▼
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.
Mar a nì thu dì-stàladh agus ath-shuidheachadh nuair a bhios Apache2 ag aithris mearachd?

Mar sin, chaidh seirbheis Apache a dhì-stàladh agus a thoirt air falbh air CentOS 7.
Cuir a-steach an dì-stàladh CWP a leanas thoir air falbh àithne seirbheis Apache ▼
yum remove cwp-httpd
Òrdugh seirbheis Apache yum airson cuir às agus ath-shuidheachadh
Ceum 1: Stàlaich seirbheis Apache a’ cleachdadh an àithne yum.
Às deidh dhut CWP a dhì-stàladh agus an t-seirbheis Apache a dhubhadh às, cleachd an àithne yum gus an t-seirbheis Apache ath-shuidheachadh▼
yum install cwp-httpd
Ceum 2: Cuir Apache an gnìomh, a dh’fheumas seirbheis Apache a thòiseachadh.
Cuir a-steach an àithne a leanas ann an SSH▼
systemctl start httpd
Ceum 3: An ath rud, rèitich seirbheis Apache gus tòiseachadh nuair a bhios an siostam a’ tòiseachadh:
systemctl enable httpd
Ceum 4: Thoir sùil air inbhe seirbheis Apache
Seall fiosrachadh mu Apache agus faic inbhe na seirbheis Apache a tha a’ ruith an-dràsta:
systemctl status httpd
Tha mi an dòchas gum bi an t-artaigil “How to Uninstall and Reinstall Apache2 When Errors? Deleting and Reinstalling Apache Service Using the yum Command” a chaidh a cho-roinn air blog Chen Weiliang ( https://www.chenweiliang.com/ ) feumail dhut.
Faodaidh sibh ceangal an artaigil seo a cho-roinn: https://www.chenweiliang.com/cwl-27525.html
