Artikulo Direktoryo
Isang digital marketer ang nag-install ng CWP7 Control Panel Apache 2.4.25 sa isang Linux server , ngunit nabigong magsimula ang serbisyo ng Apache, na nagresulta sa sumusunod na error: ▼
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.
Paano i-uninstall at muling i-install kapag nag-ulat ang Apache2 ng isang error?

Samakatuwid, ang serbisyo ng Apache ay na-uninstall at inalis sa CentOS 7.
Ilagay ang sumusunod na CWP uninstall remove Apache service command ▼
yum remove cwp-httpd
Apache service yum command para tanggalin at muling i-install
Hakbang 1: I-install ang serbisyo ng Apache gamit ang utos na yum.
Pagkatapos i-uninstall ang CWP at tanggalin ang serbisyo ng Apache, gamitin ang yum command upang muling i-install ang serbisyo ng Apache▼
yum install cwp-httpd
Hakbang 2: I-activate ang Apache, na nangangailangan ng pagsisimula ng serbisyo ng Apache.
Ipasok ang sumusunod na command sa SSH▼
systemctl start httpd
Hakbang 3: Susunod, i-configure ang serbisyo ng Apache upang magsimula kapag nag-boot ang system:
systemctl enable httpd
Hakbang 4: Suriin ang katayuan ng serbisyo ng Apache
Ipakita ang impormasyon tungkol sa Apache at tingnan ang katayuan ng kasalukuyang tumatakbong serbisyo ng Apache:
systemctl status httpd
Sana ay makatulong sa iyo ang artikulong "Paano I-uninstall at I-reinstall ang Apache2 Kapag Nagkakamali? Pagtanggal at Pag-reinstall ng Serbisyo ng Apache Gamit ang yum Command" na ibinahagi sa blog ni Chen Weiliang ( https://www.chenweiliang.com/ ).
Huwag mag-atubiling ibahagi ang link ng artikulong ito: https://www.chenweiliang.com/cwl-27525.html
