2016-10-01 3 views
-1
sudo /etc/init.d/apache2 restart 
    [....] Restarting apache2 (via systemctl): apache2.serviceJob for  
    apache2.service failed because the control process exited with error 
    code. See "systemctl status apache2.service" and "journalctl -xe" for 
    details. 
    failed! 
    [email protected]:~$ sudo systemctl status apache2.service 

apache2.service - LSB: Apache2 web server 
    Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) 
    Drop-In: /lib/systemd/system/apache2.service.d 
      └─apache2-systemd.conf 
    Active: failed (Result: exit-code) since Sat 2016-10-01 11:48:31 SAST; 
    1min 3 
    Docs: man:systemd-sysv-generator(8) 
    Process: 4128 ExecStop=/etc/init.d/apache2 stop (code=exited, 
    status=0/SUCCESS 
    Process: 636 ExecReload=/etc/init.d/apache2 reload (code=exited, 
    status=0/SUCC 
    Process: 4154 ExecStart=/etc/init.d/apache2 start (code=exited, 
    status=1/FAILU 

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: * 
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: * The apache2 configtest faile 

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: Output of config test was: 
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: apache2: Syntax error on line 2 

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: Action 'configtest' failed. 
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: The Apache error log may have m 

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Control process e 

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: Failed to start LSB: Apache2 web s 

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Unit entered fail 

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Failed with resul 
lines 1-20/20 (END) 
+0

각 모듈을 설치하여 시작했지만 phpmyadmin을 설치하고 아파치 구성 파일에 "include /etc/phpmyadmin/apache2.conf"를 포함하여 매번이 오류 –

+0

을 보냈습니다. 다시 시작하려고하면 오류가 발생합니다. –

+0

Stack Overflow에 오신 것을 환영합니다! 질문을 향상 시키려면 [질문하는 방법] (http://stackoverflow.com/help/how-to-ask)을 검토하십시오. – David

답변

0

아파치 구성이 잘못되었습니다. 그것을 확인하고 아파치를 다시 시작하십시오.

+0

그래서 어떻게해야합니까? 내가 그것을 제거하고 다시 설치해야합니다. 나는 5 번처럼 했어. –

관련 문제