คำสั่งที่ใช้ restart Apache
Code: Select all
sudo service apache2 restart
Code: Select all
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
Moderators: mindphp, ผู้ดูแลกระดาน
Code: Select all
sudo service apache2 restart
Code: Select all
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
ลงมากับ lampp นะคะ
Code: Select all
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since พฤ. 2020-12-24 13:23:35 +07; 13min a
Docs: man:systemd-sysv-generator(8)
Process: 9619 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILU
ธ.ค. 24 13:23:35 com012-X450LD systemd[1]: Starting LSB: Apache2 web server...
ธ.ค. 24 13:23:35 com012-X450LD apache2[9619]: * Starting Apache httpd web serve
ธ.ค. 24 13:23:35 com012-X450LD apache2[9619]: *
ธ.ค. 24 13:23:35 com012-X450LD apache2[9619]: * The apache2 configtest failed.
ธ.ค. 24 13:23:35 com012-X450LD apache2[9619]: Output of config test was:
ธ.ค. 24 13:23:35 com012-X450LD apache2[9619]: env: ‘apache2ctl’: No such file or
ธ.ค. 24 13:23:35 com012-X450LD systemd[1]: apache2.service: Control process exit
ธ.ค. 24 13:23:35 com012-X450LD systemd[1]: Failed to start LSB: Apache2 web serv
ธ.ค. 24 13:23:35 com012-X450LD systemd[1]: apache2.service: Unit entered failed
ธ.ค. 24 13:23:35 com012-X450LD systemd[1]: apache2.service: Failed with result '
ทำได้แล้วค่ะ วิธีทำ
Code: Select all
sudo su //เปิด run คำสั่งเปิดสิทธิเป็น root กด Enter
apt update //คำสั่ง update กด Enter
apt upgrade //คำสั่ง upgrade กด Enter แล้วรอจนกว่าจะ load เสร็จ
Code: Select all
dpkg -s apache2
Code: Select all
Package: apache2
Status: install ok installed <---ต้องเป็นแบบนี้
Code: Select all
apt-get install apache2
Code: Select all
exit
Code: Select all
sudo /etc/init.d/apache2 restart
Code: Select all
[ ok ] Restarting apache2 (via systemctl): apache2.service.
Users browsing this forum: Google [Bot] and 11 guests