최근에 우분투 서버를 12.04에서 14.04로 업데이트했습니다. 이제 아파치는 제대로 작동하지 않습니다. 이것은 apache2를 다시 시작할 때 발생하는 오류입니다.
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/authz_default.load: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
apache2.conf의 210 행은 다음과 같습니다.
Include mods-enabled/*.load
이와 관련된 문제를 찾을 수없는 것 같습니다.
라인 210 은에 심볼릭 링크가있는 apache2.conf
모든 모듈 을 로드합니다 . 심볼릭 링크가 끊어 졌는지 확인하려면이 명령을 실행합니다./etc/apache2/mods-enabled/
/etc/apache2/mods-available/
ls -la /etc/apache2/mods-enabled/
그렇다면 심볼릭 링크를 삭제하고 아파치를 다시 시작하십시오.
sudo unlink /etc/apache2/mods-enabled/authz_default.load
sudo service apache restart
다른 모듈도 비활성화하거나 필요한 경우 다시 설치해야 할 수 있습니다.
참고 : 모드를 비활성화하는 일반적인 방법 (내부적으로 심볼릭 링크를 제거함) a2dismod
은를 사용하는 것이지만 깨진 모드 / synlink에서 작동하는지 모르겠습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다