메뉴 건너뛰기

조회 수 9575 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
 Test Environment

 

CentOS 5.x 32bit

 

Red : 강조

Blue : 명령어 & 메뉴이동

Green : 주석

Pink : 변수

Purple : 예시

Orange : 출력&편집&소스

 

* Incident

 

웹사이트가 열리는 중 이미지 파일이 깨지거나 일부 파일이 불러오지 못하는 이슈가 발생하였다.

apache error log를 확인해 보니 다음과 같이 로그가 지속적으로 발생하고 있었다.

[root@mooon]# less /usr/local/apache/logs/error_log

...

[Mon Feb 02 16:43:06.489904 2015] [core:notice] [pid 16120:tid 3086215936] AH00052: child pid 3204 exit signal Segmentation fault (11)

[Mon Feb 02 16:43:06.489957 2015] [core:notice] [pid 16120:tid 3086215936] AH00052: child pid 3832 exit signal Segmentation fault (11)

[Mon Feb 02 16:56:51.656635 2015] [core:notice] [pid 16120:tid 3086215936] AH00052: child pid 3860 exit signal Segmentation fault (11)

...


PHP 마이너 버전을 변경하여 재컴파일 후 configtest 하였지만 다음과 같이 에러가 발생하였다.

[root@mooon]# /usr/local/apache/bin/apachectl configtest

httpd: Syntax error on line 146 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: unixd_config

 

 

* Resolution

관련 자료를 찾아보니 Apache 2.4 버전에서 PHP 5.2.x 버전과의 충돌 때문에 이슈가 발생할 수 있다고 하였다.

원인은 apache 버전이 2.4로 업데이트 되면서 일부 심볼의 명칭이 바뀌었다.


unixd_config > ap_unixd_config


사이트에 영향이 없다면 PHP 5.3.x 버전 이후를 사용하거나

php압축해제경로/sapi/apache2handler/php_functins.c 파일을 열어 수정 후 재컴파일을 하면 해결된다.

[root@mooon]# vi /root/pkg/php-5.2.17/sapi/apache2handler/php_functins.c

>line 386

#if !defined(WIN32) && !defined(WINNT) && !defined(NETWARE)

        AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;

#endif

> line 417

#if !defined(WIN32) && !defined(WINNT) && !defined(NETWARE)

        snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_unixd_config.group_id);

        php_info_print_table_row(2, "User/Group", tmp);

#endif

 

 

 * Reference 


List of Articles
번호 제목 날짜 조회 수
77 LINUX - 특정 파일이 속한 RPM 패키지 확인 및 설정 파일 경로 2014.02.27 7940
76 LILO, GRUB root 패스워드 리셋 2014.02.27 7895
» libphp5.so: undefined symbol: unixd_config 2016.03.18 9575
74 kernel panic 복구 2014.02.27 9320
73 iptable에서 TCP SYN Flooding 차단 설정 2014.02.27 9555
72 iptables 접속 차단 스크립트 2014.04.23 7665
71 iptables GEOIP 모듈 설치. (국가별 IP 차단) 2014.02.27 7864
70 iptables + 스크립트를 이용한 중국 IP 차단 2014.02.27 8696
69 iconv 추가 설치 2014.03.26 8603
68 httpd.conf 기타 설정 사항 2015.07.16 7368
67 htaccess를 이용한 특정 디렉토리 접근 관리하기 2014.02.27 7122
66 htaccess를 이용한 특정 디렉토리 접근 관리하기 2014.02.27 7136
65 hp Smart Array CLI 사용해서 논리드라이브 복구(Linux) 2015.06.16 9058
64 history 파일 삭제 제한하기 2014.02.27 7787
63 ftp passive mode 설정 2014.02.27 8095
62 find명령과 grep명령을 이용하여 파일안의 문자열 찾기 2014.02.27 7287
61 find 명령어로 특정 디렉토리 내 특정 파일들의 특정 문자열 일괄 변경 2014.02.27 7195
60 find 명령어 정리 2014.02.27 7320
59 find 명령어 2021.03.26 162
58 find - 파일 검색 2014.04.29 7200
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved