Drejtoria e artikujve
Një tregtar dixhital instaloi CWP7 Control Panel Apache 2.4.25 në një server Linux , por shërbimi Apache dështoi të nisej, duke rezultuar në gabimin e mëposhtëm: ▼
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.
Si të çinstaloni dhe riinstaloni kur Apache2 raporton një gabim?

Prandaj, shërbimi Apache u çinstalua dhe u hoq në CentOS 7.
Futni komandën e mëposhtme të çinstalimit të CWP për heqjen e shërbimit Apache ▼
yum remove cwp-httpd
Komanda yum e shërbimit Apache për të fshirë dhe riinstaluar
Hapi 1: Instaloni shërbimin Apache duke përdorur komandën yum.
Pas çinstalimit të CWP dhe fshirjes së shërbimit Apache, përdorni komandën yum për të riinstaluar shërbimin Apache ▼
yum install cwp-httpd
Hapi 2: Aktivizoni Apache-n, gjë që kërkon nisjen e shërbimit Apache.
Futni komandën e mëposhtme në SSH▼
systemctl start httpd
Hapi 3: Më pas, konfiguroni shërbimin Apache që të fillojë kur sistemi të ndizet:
systemctl enable httpd
Hapi 4: Kontrolloni statusin e shërbimit Apache
Shfaqni informacion rreth Apache dhe shikoni statusin e shërbimit Apache që funksionon aktualisht:
systemctl status httpd
Shpresojmë që artikulli "Si të çinstaloni dhe riinstaloni Apache2 kur keni gabime? Fshirja dhe riinstalimi i shërbimit Apache duke përdorur komandën yum" i ndarë në blogun e Chen Weiliang ( https://www.chenweiliang.com/ ) do t'ju jetë i dobishëm.
Ndihuni të lirë të ndani lidhjen e këtij artikulli: https://www.chenweiliang.com/cwl-27525.html
