메뉴 건너뛰기

조회 수 9577 추천 수 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 


  1. No Image

    LINUX - 특정 파일이 속한 RPM 패키지 확인 및 설정 파일 경로

    Date2014.02.27 Views7940
    Read More
  2. No Image

    LILO, GRUB root 패스워드 리셋

    Date2014.02.27 Views7895
    Read More
  3. No Image

    libphp5.so: undefined symbol: unixd_config

    Date2016.03.18 Views9577
    Read More
  4. No Image

    kernel panic 복구

    Date2014.02.27 Views9321
    Read More
  5. No Image

    iptable에서 TCP SYN Flooding 차단 설정

    Date2014.02.27 Views9555
    Read More
  6. No Image

    iptables 접속 차단 스크립트

    Date2014.04.23 Views7665
    Read More
  7. No Image

    iptables GEOIP 모듈 설치. (국가별 IP 차단)

    Date2014.02.27 Views7868
    Read More
  8. No Image

    iptables + 스크립트를 이용한 중국 IP 차단

    Date2014.02.27 Views8696
    Read More
  9. No Image

    iconv 추가 설치

    Date2014.03.26 Views8603
    Read More
  10. No Image

    httpd.conf 기타 설정 사항

    Date2015.07.16 Views7368
    Read More
  11. No Image

    htaccess를 이용한 특정 디렉토리 접근 관리하기

    Date2014.02.27 Views7123
    Read More
  12. No Image

    htaccess를 이용한 특정 디렉토리 접근 관리하기

    Date2014.02.27 Views7136
    Read More
  13. No Image

    hp Smart Array CLI 사용해서 논리드라이브 복구(Linux)

    Date2015.06.16 Views9058
    Read More
  14. No Image

    history 파일 삭제 제한하기

    Date2014.02.27 Views7788
    Read More
  15. No Image

    ftp passive mode 설정

    Date2014.02.27 Views8095
    Read More
  16. No Image

    find명령과 grep명령을 이용하여 파일안의 문자열 찾기

    Date2014.02.27 Views7287
    Read More
  17. No Image

    find 명령어로 특정 디렉토리 내 특정 파일들의 특정 문자열 일괄 변경

    Date2014.02.27 Views7195
    Read More
  18. No Image

    find 명령어 정리

    Date2014.02.27 Views7320
    Read More
  19. No Image

    find 명령어

    Date2021.03.26 Views162
    Read More
  20. No Image

    find - 파일 검색

    Date2014.04.29 Views7200
    Read More
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved