우분투 nginx 사용하는데요.

 

php -fpm -log 에는 에러 로그가 없는데 

다른 곳에서 봐야 하나요??

 

NOTICE: error log file re-opened
 

 

조회하면 위와 같이 뜨네요.

  • profile

    nginx 폴더에
    error.log 에서 봐야 하는거였죠..


    2021/01/08 22:55:30 [error] 10849#10849: *56175 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/vendor/composer/platform_check.php): failed to open stream: No such file or directory in /var/www/html/vendor/composer/autoload_real.php on line 25
    PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/composer/platform_check.php' (include_path='.:/usr/share/php') in /var/www/html/vendor/composer/autoload_real.php on line 25" while reading response header from upstream, client: .22, server: rxtip.kr, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "rxtip.kr"

  • profile profile
    changed 파일에서 일부 composer 의존성 파일이 누락되었던 것 같습니다.
    changed 파일을 다시 다운받아서 업데이트해 보세요.
  • profile profile
    네. 일단 말씀 하신대로 해보겠습니다.

    vendor 폴더 전체를 업로드 했더니
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0".
    라고 메시지가 뜹니다. 500에러 대신 위 메시지만 뜹니다. 저희는 7.2 입니다.

    위와 같은 상황이라 말씀 하신대로 체인지드를 다시 받아 업로드 해보겠습니다.
  • profile profile
    develop 브랜치에서 긴급 디버깅 중입니다. 새로 추가된 라이브러리 하나가 말썽인 것 같네요.
  • profile profile
    일단 그대로 따라서 해당코드 전부 삭제하고 정상화 되었습니다.
  • profile
    웹지기님의 말을 듣고 혹시나 해서 저도 업데이트 해보았는데, 저는 현재 오류가 발생하지 않고 있습니다. 저의 경우 PHP7.4 최신버전 + nginx 조합입니다.
  • profile profile
    업데이트 하실때 혹시 전체 덮어 씌우는 방식으로 하시나요?
  • profile profile
    넵 저는 git pull을 통해 업데이트 하였습니다.
  • profile
    서버에서 php7.4 사이트 1개, php8.0 사이트 1개 운영중인데 php8.0과 7.4 버전 모두 이상없는점 확인하였습니다
  • profile profile
    높은버전은 문제 없습니다 :)
  • profile profile
    확인해주셔서 감사합니다!