ລາຍການຫົວເລື່ອງ
ນັກ ກາລະຕະຫຼາດດິຈິຕອນ ໄດ້ຕິດຕັ້ງ CWP7 Control Panel Apache 2.4.25 ໃນ ເຊີບເວີ Linux , ແຕ່ການບໍລິການ Apache ບໍ່ສາມາດເລີ່ມຕົ້ນໄດ້, ເຊິ່ງສົ່ງຜົນໃຫ້ເກີດຄວາມຜິດພາດຕໍ່ໄປນີ້: ▼
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.
ວິທີການຖອນການຕິດຕັ້ງແລະຕິດຕັ້ງໃຫມ່ເມື່ອ Apache2 ລາຍງານຂໍ້ຜິດພາດ?

ດັ່ງນັ້ນ, ການບໍລິການ Apache ຈຶ່ງຖືກຖອນການຕິດຕັ້ງ ແລະ ລຶບອອກໃນ CentOS 7.
ໃສ່ຄຳສັ່ງ CWP uninstall remove Apache service ຕໍ່ໄປນີ້ ▼
yum remove cwp-httpd
ບໍລິການ Apache yum ຄໍາສັ່ງທີ່ຈະລຶບແລະຕິດຕັ້ງໃຫມ່
ຂັ້ນຕອນທີ 1: ຕິດຕັ້ງບໍລິການ Apache ໂດຍໃຊ້ຄໍາສັ່ງ yum.
ຫຼັງຈາກຖອນການຕິດຕັ້ງ CWP ແລະລຶບການບໍລິການ Apache, ໃຊ້ຄໍາສັ່ງ yum ເພື່ອຕິດຕັ້ງບໍລິການ Apache ຄືນໃໝ່▼
yum install cwp-httpd
ຂັ້ນຕອນທີ 2: ເປີດໃຊ້ Apache, ເຊິ່ງຮຽກຮ້ອງໃຫ້ມີການເລີ່ມຕົ້ນການບໍລິການ Apache.
ໃສ່ຄໍາສັ່ງຕໍ່ໄປນີ້ໃນ SSH▼
systemctl start httpd
ຂັ້ນຕອນທີ 3: ຕໍ່ໄປ, ຕັ້ງຄ່າການບໍລິການ Apache ໃຫ້ເລີ່ມຕົ້ນເມື່ອລະບົບເລີ່ມຕົ້ນ:
systemctl enable httpd
ຂັ້ນຕອນທີ 4: ກວດສອບສະຖານະການບໍລິການ Apache
ສະແດງຂໍ້ມູນກ່ຽວກັບ Apache ແລະເບິ່ງສະຖານະຂອງບໍລິການ Apache ທີ່ກໍາລັງແລ່ນຢູ່ໃນຂະນະນີ້:
systemctl status httpd
ຫວັງວ່າ ບົດຄວາມ "ວິທີການຖອນການຕິດຕັ້ງ ແລະ ຕິດຕັ້ງ Apache2 ຄືນໃໝ່ເມື່ອເກີດຂໍ້ຜິດພາດ? ການລຶບ ແລະ ຕິດຕັ້ງບໍລິການ Apache ຄືນໃໝ່ໂດຍໃຊ້ຄຳສັ່ງ yum" ທີ່ແບ່ງປັນໃນ ບລັອກຂອງ Chen Weiliang ( https://www.chenweiliang.com/ ) ຈະເປັນປະໂຫຍດຕໍ່ທ່ານ.
ຮູ້ສຶກວ່າບໍ່ເສຍຄ່າທີ່ຈະແບ່ງປັນລິ້ງຂອງບົດຄວາມນີ້: https://www.chenweiliang.com/cwl-27525.html
