Kumaha ngahapus sareng pasang deui nalika Apache2 ngalaporkeun kasalahan? Paréntah yum jasa Apache pikeun mupus sareng pasang deui

Pamasar digital masang CWP7 Control Panel Apache 2.4.25 dina server Linux , tapi layanan Apache gagal dimimitian, anu nyababkeun kasalahan ieu: ▼

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.

Kumaha ngahapus sareng pasang deui nalika Apache2 ngalaporkeun kasalahan?

Kumaha ngahapus sareng pasang deui nalika Apache2 ngalaporkeun kasalahan? Paréntah yum jasa Apache pikeun mupus sareng pasang deui

Ku kituna, layanan Apache parantos di-uninstall sareng dihapus dina CentOS 7.

Lebetkeun paréntah CWP uninstall remove Apache service ▼

yum remove cwp-httpd

Paréntah yum jasa Apache pikeun mupus sareng pasang deui

Léngkah 1: Pasang layanan Apache nganggo paréntah yum.

Saatos ngahapus CWP sareng ngahapus jasa Apache, anggo paréntah yum pikeun masang deui jasa Apache▼

yum install cwp-httpd

Lengkah 2: Aktipkeun Apache, anu meryogikeun ngamimitian layanan Apache.

Lebetkeun paréntah di handap ieu dina SSH▼

systemctl start httpd

Léngkah 3: Salajengna, konpigurasikeun layanan Apache pikeun ngamimitian nalika sistem boot:

systemctl enable httpd

Léngkah 4: Pariksa status layanan Apache

Tampilkeun inpormasi ngeunaan Apache sareng tingali status jasa Apache anu ayeuna dijalankeun:

systemctl status httpd

 

koméntar

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

Ngagulung ka luhur