메뉴 건너뛰기

조회 수 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 


  1. No Image

    Apache Mod_Security 사용방법

    Date2016.04.22 Views8916
    Read More
  2. No Image

    [apache] - .htaccess 설정

    Date2016.03.18 Views7262
    Read More
  3. No Image

    php 리다이렉트

    Date2016.03.18 Views8302
    Read More
  4. No Image

    Apache 리다이렉트

    Date2016.03.18 Views8155
    Read More
  5. No Image

    cron에 php 파일 등록 방법

    Date2016.03.18 Views7602
    Read More
  6. No Image

    rsync ssh를 이용한 서버 백업

    Date2016.03.18 Views9006
    Read More
  7. No Image

    CentOS 5.1 + APM(apache 2.2.x + php 5.2.x + mysql5.0.x + Zend 3.0.x) 설치

    Date2016.03.18 Views8686
    Read More
  8. No Image

    mysql DB 지정 백업 스크립트

    Date2016.03.18 Views8004
    Read More
  9. No Image

    apache 구동중지되어있을 때 재구동 스크립트

    Date2016.03.18 Views7373
    Read More
  10. No Image

    php sockets 동적 모듈 설치 ( php socket )

    Date2016.03.18 Views8324
    Read More
  11. No Image

    php http include

    Date2016.03.18 Views7685
    Read More
  12. No Image

    php-5.2.17 make시에 오류 발생 make: *** [ext/dom/node.lo] 오류 1

    Date2016.03.18 Views10744
    Read More
  13. No Image

    yum-fastestmirror로 CentOS 5.0 의 yum 속도 업!

    Date2016.03.18 Views7513
    Read More
  14. No Image

    Yum과 rpm을 이용하여 PHP5.5버전 설치

    Date2016.03.18 Views8075
    Read More
  15. No Image

    컴파일을 이용하여 Apache 최신버전을 설치하자

    Date2016.03.18 Views7632
    Read More
  16. No Image

    yum 업데이트 시 특정 패키지 예외처리

    Date2016.03.18 Views8350
    Read More
  17. No Image

    libphp5.so: undefined symbol: unixd_config

    Date2016.03.18 Views9575
    Read More
  18. No Image

    하드디스크 배드블록 점검 툴 - badblocks

    Date2016.03.18 Views8808
    Read More
  19. No Image

    Apache 2.x 에서 maxclients 1024 제한 초과 방법 (수정 중..)

    Date2016.03.18 Views8554
    Read More
  20. No Image

    확장자가 없는 파일 자동인식하는 mod_mime_magic

    Date2016.03.18 Views9316
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 12 Next
/ 12

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved