Apache2는 Arch Linux에서 시작되지 않습니다

Apache2는 Arch Linux에서 시작되지 않습니다

이 문제에 대한 많은 스레드를 보았지만 문제가 해결되지 않았습니다.

httpd.service다음 명령으로 시작하려고 합니다 .

$ sudo systemctl start httpd.service

오류:

Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

PS:

$ journalctl -xn

위 명령의 출력은 다음과 같습니다.

-- Logs begin at Sat 2014-03-29 22:42:48 IRDT, end at Sat 2014-05-10 23:58:05 IRDT. --
May 10 23:55:51 localhost systemd[1]: Unit httpd.service entered failed state.
May 10 23:55:51 localhost sudo[18583]: pam_unix(sudo:session): session closed for user root
May 10 23:58:05 localhost sudo[19575]: kamix : TTY=pts/1 ; PWD=/home/kamix ; USER=root ; COM
May 10 23:58:05 localhost sudo[19575]: pam_unix(sudo:session): session opened for user root 
May 10 23:58:05 localhost systemd[1]: Starting Apache Web Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
May 10 23:58:05 localhost apachectl[19578]: httpd: Syntax error on line 59 of /etc/httpd/con
May 10 23:58:05 localhost sudo[19575]: pam_unix(sudo:session): session closed for user root
May 10 23:58:05 localhost systemd[1]: httpd.service: control process exited, code=exited sta
May 10 23:58:05 localhost systemd[1]: Failed to start Apache Web Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has failed.
-- 
-- The result is failed.

답변1

내 Arch Linux 서버 파일 의 출력 apachectl configtest과 약간의 인터넷 검색에 따르면 다음과 같습니다.문제가 있어때를Apache를 2.2에서 2.4로 업그레이드. 작년에 이런 문제가 있었던 기억이 어렴풋이 나네요. 어딘가에 저장하고 httpd.conf, 하고 pacman -R apache, 그리고 나서 pacman -S apache. 몇 가지 차이점 도구를 사용하여 Apache 2.4를 /etc/httpd/conf/httpd.conf저장한 것과 비교하고 필요한 경우 새 httpd.conf. 몇 가지 필요한 변경 사항만 있을 수 있습니다. 저는 개인적으로 필요하지 않은 명명된 가상 서버를 제거했습니다.

관련 정보