우분투 14.04와 apache2 및 ispconfig 3을 사용하고 있습니다. 몇 시간 전에 실수로/var/log/apache2 폴더가 파일을 삭제했습니다. 서버가 apache2를 다시 시작할 수 없습니다. 어떻게 복구 할 수 있습니까? 또는 서버를 재부팅 할 때 로그 폴더와 파일이 시스템에 의해 자동으로 생성됩니까?/var/log/apache2를 실수로 삭제하고 아파치를 다시 시작할 수 없습니다.
나는 아파치 다시 시작하면
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:61
(2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
(2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-default.conf:1
AH00014: Configuration check failed
Action 'configtest' failed.
The Apache error log may have more information.
빈 디렉토리를 만들고 쓰기 권한을 부여하십시오. 'mkdir -p/var/log/apache2 /''chmod -R 755/var/log/apache2 /' – Gangaraju
감사합니다 Gangaraju! 어쨌든 고맙습니다. – Anthony
질문에 "긴급한"또는 "도와주세요"를 추가하지 마십시오. 구걸 할 필요가 없습니다. 여기에 질문에 답하는 자원 봉사자를 서두 르기 위해 어떤 조치도 취하지 않을 것입니다. . – halfer