Raspian 10 (Buster)
Apache 2.4.38
lighttpd 1.4.53
이전에 lighttpd를 설치했는데 문제없이 실행 중입니다. 오늘 나는 ownCloud를 실행할 수 있도록 apache를 설치했습니다. Apache, owncloud 및 owncloud 종속성에 대한 문제없이 설치 프로세스를 진행했습니다. 초기 설치 후 192.168.1.10/owncloud(/var/www/html/owncloud)를 통해 owncloud 관리자 설정 페이지에 액세스 할 수 있었지만 PHP 오류가 발생했습니다. lighttpd가 127.0.0.1 루프백에서 포트 80을 사용하고 있고 아파치가 제대로로드되는 것을 막고 있다는 것을 깨달았습니다. 그래서 lighttpd를 포트 8080으로 전환했습니다. 서비스를 다시 시작한 후 행복하게 사업을 시작했습니다. 80에서 아파치를 통해 파일에 액세스 할 수없는 시점에서 아파치를 다시 시작했습니다.
찾을 수 없습니다. 이 서버에서 요청한 URL을 찾을 수 없습니다. Apache / 2.4.38 (Raspbian) 서버 (192.168.1.10 포트 80)
아파치에서 올바르게 구성되었는지 확인합니다.
systemctl status apache2
좋은 결과가 나오고 apache2ctl -t
OK를 반환합니다. 그래서 모든 것이 좋아 보입니다. 그래서 아파치 로그보고를 변경하여 디버그하고 로그 파일을 살펴 봅니다.
액세스 로그 :
192.168.1.20 - - [05/May/2020:18:38:35 -0900] "GET /index.php HTTP/1.1" 404 496 "http://192.168.1.10/"
오류 기록:
[Tue May 05 18:38:35.852298 2020] [core:info] [pid 703:tid 2882475040] [client 192.168.1.20:55977] AH00128: File does not exist: /var/www/owncloud/index.php, referer: http://192.168.1.10/
여전히 분명한 것은 없습니다. 재부팅했습니다. 로드가 안되요 I 'm alive! 문서 루트에서도. 모든 아파치 구성 파일을 살펴 보았지만 아무것도 볼 수 없으며 수많은 검색을 읽었습니다. 나는 이것이 간단한 문제라는 것을 알고 있지만 이해할 수 없습니다.
나는 내가 무언가를 간과하고 있다는 것을 알고 있지만 내 삶을 위해 나는 그것을 발견 할 수 없다. 도움을 주시면 감사하겠습니다!
편집 : 꼬리에서 출력 :
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
나는 이것을 해결했다. 문제가 무엇인지 확실하지 않지만 구성 파일이나 소유권 / 권한이있는 매우 기본적인 문제였습니다. 별도의 시스템에 다른 아파치 인스턴스를 설치 한 다음 구성 및 색인 파일을 복사하여 문제를 해결했습니다. 근본 원인이 무엇인지 모르겠지만 ... 이제 끝났습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다