나는 팔로우하고 있다디지털해양네트워크하위 도메인 설정 안내입니다. 하지만 이제 아파치를 다시 시작하는 데 문제가 있습니다.
다음과 같은 오류가 있습니다.
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
systemctl status httpd.service
나에게 이것을 주었다:
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-04-18 18:11:36 UTC; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1679 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1678 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1678 (code=exited, status=1/FAILURE)
Apr 18 18:11:36 web-server systemd[1]: Starting The Apache HTTP Server...
Apr 18 18:11:36 web-server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 18:11:36 web-server kill[1679]: kill: cannot find process ""
Apr 18 18:11:36 web-server systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 18:11:36 web-server systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 18:11:36 web-server systemd[1]: Unit httpd.service entered failed state.
Apr 18 18:11:36 web-server systemd[1]: httpd.service failed.
그래서 계속해서 sudo tail /var/log/httpd/error_log를 실행하여 다음 결과를 얻었습니다.
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
이 문제를 해결하도록 도와줄 수 있는 친절한 사람이 있나요? 나는 매우 새롭고 다음에 무엇을 해야할지 모르겠습니다.
Apache 구성 조각은 다음과 같습니다.
<VirtualHost *:80>
ServerName portal.motomart.my
ServerAlias www.portal.motomart.my
DocumentRoot /var/www/motomart.my/public_html
ErrorLog /var/www/motomart.my/error.log
CustomLog /var/www/motomart.my/requests.log combined
</VirtualHost>
답변1
로그에서는 Apache 시작에 실패한 이유를 정확하게 알려줍니다.
AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs (21)Is a directory:
사용하려고 하지 않는지 확인하세요.목차Apache 구성의 로그 파일로.