หาก VPS ของเราใช้CentOS 7และผู้ให้บริการ VPS เสนอเวอร์ชัน CentOS ที่ไม่ใช่เวอร์ชันบริสุทธิ์ Apache (httpd ใน CentOS) จะถูกติดตั้งโดยค่าเริ่มต้น
ขั้นตอน นี้จะส่งผลให้มีข้อความแจ้งเตือนต่อไปนี้ปรากฏขึ้นระหว่างการติดตั้ง VestaCP :
- “ติดตั้งแพ็คเกจต่อไปนี้แล้ว: httpd centos 7”
- (ติดตั้งแล้วดังต่อไปนี้软件แพ็คเกจ: httpd centos 7)
!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! Following packages are already installed: httpd It is highly recommended to remove them before proceeding. If you want to force installation run this script with -f option: Example: bash vst-install-rhel.sh --force !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! Error: Control Panel should be installed on clean server.
วิธีการแก้
ขั้นตอนที่ 1:รันคำสั่งต่อไปนี้
yum remove httpd
ขั้นตอนที่ 2:ติดตั้งเครื่องมือลบ httpd
หลังจากรันคำสั่งต่อไปนี้:
yum remove httpd-tools
ตกลงไหม [ใช่/ไม่ใช่]: (สอบถามว่าต้องการติดตั้งหรือไม่)
ป้อน y เพื่อติดตั้ง คุณสามารถลบ httpd ใน CentOS ▼
Installed size: 9.5 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : httpd-2.4.6-67.el7.centos.6.x86_64 1/2 warning: /etc/httpd/conf/httpd.conf saved as /etc/httpd/conf/httpd.conf.rpmsave Erasing : httpd-tools-2.4.6-67.el7.centos.6.x86_64 2/2 Verifying : httpd-2.4.6-67.el7.centos.6.x86_64 1/2 Verifying : httpd-tools-2.4.6-67.el7.centos.6.x86_64 2/2 Removed: httpd-tools.x86_64 0:2.4.6-67.el7.centos.6 Dependency Removed: httpd.x86_64 0:2.4.6-67.el7.centos.6 Complete!
การอ่านเพิ่มเติม:
หวังว่า บทความ "การติดตั้งพรอมต์ VestaCP: แพ็กเกจต่อไปนี้ได้รับการติดตั้งแล้ว: httpd centos 7" ที่แชร์บนบล็อกของ Chen Weiliang ( https://www.chenweiliang.com/ ) จะเป็นประโยชน์กับคุณ
โปรดแชร์ลิงก์บทความนี้ได้ตามสบาย: https://www.chenweiliang.com/cwl-691.html



