메뉴 건너뛰기

조회 수 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
번호 제목 날짜 조회 수
176 백업받기 2016.09.12 8010
175 리눅스... 디스크 가득 찼을 때 2016.09.12 7941
174 리눅스 yum 명령어 2016.09.11 7993
173 PHPIZE를 이용한 openSSL PHP 확장 모듈 설치 2016.09.11 8063
172 우분투(리눅스) 설치 USB 만들기 2016.08.10 8337
171 우분투(리눅스) 설치 USB 만들기 file 2016.08.10 8608
170 리눅스 SSH 로그인 점검 2016.07.26 9146
169 리눅스/날짜 시간 바꾸기 2016.07.22 7750
168 리눅스/RAID 설정하기 2 2016.07.22 7645
167 리눅스/RAID 설정하기 1 2016.07.22 8473
166 Root Disk를 Mirroring하는 방법 2016.07.22 8410
165 인코딩 깨진한글파일 삭제 방법 file 2016.07.22 8955
164 아파치(apache) 한글 URL 인식 모듈 설치 file 2016.07.22 9123
163 아파치(apache) 한글 URL 인식 모듈 설치 file 2016.07.22 9435
162 아파치(apache) 한글 URL 인식 모듈 설치 file 2016.07.22 8429
161 아파치 한글파일 인식설정 file 2016.07.22 8622
160 리눅스 읽기전용 파일시스템 / 파일 입/출력 오류 2016.07.22 12175
159 bind , 네임서버 구축 ( CentOS 6.x) file 2016.04.22 7084
158 Nikto - 웹 취약점 스캐너 도구 file 2016.04.22 9232
157 Apache Mod_Security 사용방법 2016.04.22 8914
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 12 Next
/ 12

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved