Apache-MySQL-PHPを手動でコンパイルし、以下の構成オプションを使用してカスタムインストールを構築します。apacheを起動すると起動に失敗し、error_logに以下のエラーが追加されます。
* Apache 2
* Mysql 5.0
* PHP 5.1
* CentOS Linux 5.4*GCCコンパイラ
apacheログのエラー
httpd:/opt/clamp/etc/httpd.confの54行目の構文エラー:/opt/clamp/modules/libphp5.soをサーバーにロードできません:/opt/clamp/modules/libphp5.so:未定義のシンボル:_estrndup
./configureオプション
APACHE ./configure \ --prefix = / opt / clamp \ --sysconfdir = / opt / clamp / etc \ --enable-auth-dbm \ --enable-cern-meta \ --enable-auth-digest \- -enable-charset-lite \ --enable-deflate \ --enable-expires \ --enable-cache \ --enable-disk-cache \ --enable-file-cache \ --enable-headers \ --enable -info \ --enable-mime-magic \ --enable-proxy \ --enable-proxy-ajp \ --enable-proxy-balancer \ --enable-proxy-connect \ --enable-proxy-ftp \- -enable-proxy-http \ --enable-rewrite \ --enable-so \ --enable-ssl
MYSQL ./configure \ --prefix = / opt / clamp \ --sysconfdir = / opt / clamp / etc \ --libexecdir = / opt / clamp / sbin \ --localstatedir = / opt / clamp / var \ --with -unix-socket-path = /opt/clamp/tmp/mysql.sock \ --enable-thread-safe
PHP./configure\--prefix=/opt/clamp\--sysconfdir=/opt/clamp/etc\--with-apxs2=/opt/clamp/bin/apxs\ --with-config-file-path = /opt/clamp/etc/php.conf \ --with-mysql = / opt / clamp \ --with-mysqli = / opt / clamp / bin / mysql_config \ --enable-force-cgi-redirect \ --disable -cgi \ --with-zlib \ --with-gettext \ --with-gdbm \ --with-ldap \ --with-ldap-sasl \ --enable-zip \ --with-bz2 \ --with -gd \ --with-jpeg-dir = / usr \ --with-png-dir = / usr