테스트 사이트 - 개발 중인 베타 버전입니다

aws Linux 사용 하여 php 8.0 설치 오류 채택완료

니냐노 3년 전 조회 1,803

리자님 영상을 보면서 따라하다가

https://sir.kr/pg_tip/16870">https://sir.kr/pg_tip/16870

 

systemctl start mariadb nginx php-fpm 여기서 

오류가 나더라구요;;

 

순서를 처음부터 돌려서 다시 코드를 쳐봐도 똑같이 나옵니다.

 

 

Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.

 

 

</p>

<p>[root@ip-172-31-2-26 etc]# systemctl start mariadb

[root@ip-172-31-2-26 etc]# systemctl start nginx

[root@ip-172-31-2-26 etc]# systemctl start php-fpm

Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.

[root@ip-172-31-2-26 etc]# systemctl start php-fpm.service

Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.

[root@ip-172-31-2-26 etc]# systemctl status php-fpm.service

● php-fpm.service - The PHP FastCGI Process Manager

   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Tue 2022-04-19 04:06:26 UTC; 14s ago

  Process: 5023 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)

 Main PID: 5023 (code=exited, status=78)</p>

<p>Apr 19 04:06:25 ip-172-31-2-26.ap-northeast-2.compute.internal systemd[1]: Starting The PHP FastCGI Process Manager...

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal php-fpm[5023]: [19-Apr-2022 04:06:26] WARNING: [pool www] ACL set, listen.owner = 'nginx' is ignored

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal php-fpm[5023]: [19-Apr-2022 04:06:26] WARNING: [pool www] ACL set, listen.group = 'nginx' is ignored

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal php-fpm[5023]: [19-Apr-2022 04:06:26] ERROR: Another FPM instance seems to already listen on /run/php-fpm/www.sock

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal php-fpm[5023]: [19-Apr-2022 04:06:26] ERROR: FPM initialization failed

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal systemd[1]: Failed to start The PHP FastCGI Process Manager.

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal systemd[1]: Unit php-fpm.service entered failed state.

Apr 19 04:06:26 ip-172-31-2-26.ap-northeast-2.compute.internal systemd[1]: php-fpm.service failed.

[root@ip-172-31-2-26 etc]# Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.

bash: Job: command not found

[root@ip-172-31-2-26 etc]#</p>

<p>

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

로그에 바로 나온거 같은데요

php-fpm 설정 다시 한번 확인해서 해보세요

 

"다른 FPM 인스턴스가 이미 수신 중인 것 같습니다."

인스턴스 문제가 있는것같은데..

영어 해석 어려우면 번역기로도 돌려서 확인해보시구요 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 4개

니냐노
3년 전
/run/php-fpm/www.sock 에서 문제가 잇는거 아닌가용?
릴보이즈
3년 전
/run/php-fpm/www.sock 생성은 되요?
니냐노
3년 전
[code]
[root@ip-172-31-2-26 php-fpm]# ll
total 0
srw-rw----+ 1 root root 0 Apr 19 02:22 www.sock

[/code]
릴보이즈
3년 전
삭제후에 재설치해보시고
https://phsun102.tistory.com/46
이거 참고해서 설정 수정해보세요

댓글을 작성하려면 로그인이 필요합니다.

# systemctl stop php-fpm

이렇게 하면 어떤 메시지가 나오나요?

로그인 후 평가할 수 있습니다

답변에 대한 댓글 3개

니냐노
3년 전
[code]
[root@ip-172-31-2-26 ~]# systemctl stop php-fpm
[root@ip-172-31-2-26 ~]#
[/code]
니냐노
3년 전
start 를 하면 다시 도돌이표 됩니다ㅠ
[code]
[root@ip-172-31-2-26 ~]# systemctl start php-fpm
Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.
[/code]
엑스엠엘
3년 전
stop했을 때 아무 메시지가 안 나왔다면
이미 돌고 있는 거라서 그렇습니다.

이렇게 php-frm을 멈추고, 위의 명령어를 다시 실행해 보세요.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인