apache 시동시 에러 "undefined symbol: unixd_config"
[root@localhost bin]# ./httpd -t
httpd: Syntax error on line 150 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: unixd_config
아파치 시동시에 위와 같은 에러가 뜬다.
버전정보는
Server version: Apache/2.4.53 (Unix)
PHP 5.2.17 (cli)
>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
재 컴파일 후 Syntax 테스트
[root@localhost bin]# ./httpd -t
Syntax OK
[PHP 4.4.8 의 경우]
php4소스파일에서 아래 경로의 파일을 수정해야합니다.
/sapi/apache2handler/php_functions.c
붉게 표시된 부분을 기존 unixd_config -> ap_unixd_config로 수정
373라인
AP_DECLARE_DATA extern unixd_config_rec unixd_config;
404라인
snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config.group_id);
ap_get_server_version -> ap_get_server_banner로 수정
327라인
return (char *) ap_get_server_version();
수정 후 에 재 컴파일
출처 : https://rootrator.tistory.com/112
apache 시동시 에러 "undefined symbol: unixd_config"
[root@localhost bin]# ./httpd -thttpd: Syntax error on line 150 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: unixd_config 아파치 시동시에 위와 같은 에
rootrator.tistory.com
출처 : https://darksharavim.tistory.com/333
[PHP]libphp4.so: undefined symbol 오류
환경 : centos7+apache2.4.6(RPM)+php4.4.9(src) 위 환경에서 아파치 구동시 아래와 같이 오류가 발생하여 확인해본 결과 libphp4.so: undefined symbol: unixd_config libphp4.so: undefined symbol: ap_get_server_version apache버전업
darksharavim.tistory.com