[PHP-users 31760] pho4 からphp5にあげるとapacheが起動しない

Masaaki Suga suga @ tenrikyo.or.jp
2007年 3月 29日 (木) 15:17:03 JST


須賀です

redhatのlinuxにapache+php+opensslをインストールしてますが
PHP4.3.1だったのをPHP5.0.5にあげるとapacheが起動しません
PHP4.4.5なら○,PHP5.2.1は× 感じ的にPHP5.xにするとだめなような感じです

環境は

OS:Redhat Linux 6.2
apache:1.3.27
php:5.0.5
libxml2:2.6.27
openssl:0.9.7

です
apacheのconfigureは
#./configure --enable-shared=max --enable-module=rewrite --enable-module=info   
  --enable-module=ssl
です

phpのconfigureは
#./configure --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring 
  --without-pear
です

また,apachectl startsslしても,正常なメッセージしか出ませんし (・・・・started)
apacheのerror_logには起動しても何も残りません(PHP4.xのときは起動時のログが残ります)

ssl_engine_logには以下のようになります

[29/Mar/2007 14:40:15 26268] [info]  Server: Apache/1.3.27, Interface: mod_ssl/2.8.14, Library: OpenSSL/0.9.7b
[29/Mar/2007 14:40:15 26268] [info]  Init: 1st startup round (still not detached)
[29/Mar/2007 14:40:15 26268] [info]  Init: Initializing OpenSSL library
[29/Mar/2007 14:40:15 26268] [info]  Init: Loading certificate & private key of SSL-aware server xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80
[29/Mar/2007 14:40:15 26268] [info]  Init: Loading certificate & private key of SSL-aware server xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:443
[29/Mar/2007 14:40:15 26268] [info]  Init: Seeding PRNG with 136 bytes of entropy
[29/Mar/2007 14:40:15 26268] [info]  Init: Generating temporary RSA private keys (512/1024 bits)
[29/Mar/2007 14:40:15 26268] [info]  Init: Configuring temporary DH parameters (512/1024 bits)
[29/Mar/2007 14:41:00 26272] [info]  Server: Apache/1.3.27, Interface: mod_ssl/2.8.14, Library: OpenSSL/0.9.7b
[29/Mar/2007 14:41:00 26272] [info]  Init: 1st startup round (still not detached)
[29/Mar/2007 14:41:00 26272] [info]  Init: Initializing OpenSSL library
[29/Mar/2007 14:41:00 26272] [info]  Init: Loading certificate & private key of SSL-aware server xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80
[29/Mar/2007 14:41:00 26272] [info]  Init: Loading certificate & private key of SSL-aware server xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:443
[29/Mar/2007 14:41:00 26272] [info]  Init: Seeding PRNG with 136 bytes of entropy
[29/Mar/2007 14:41:00 26272] [info]  Init: Generating temporary RSA private keys (512/1024 bits)
[29/Mar/2007 14:41:01 26272] [info]  Init: Configuring temporary DH parameters (512/1024 bits)
[29/Mar/2007 14:41:01 26273] [info]  Init: 2nd startup round (already detached)
[29/Mar/2007 14:41:01 26273] [info]  Init: Reinitializing OpenSSL library
[29/Mar/2007 14:41:01 26273] [info]  Init: Seeding PRNG with 136 bytes of entropy
[29/Mar/2007 14:41:01 26273] [info]  Init: Configuring temporary RSA private keys (512/1024 bits)
[29/Mar/2007 14:41:01 26273] [info]  Init: Configuring temporary DH parameters (512/1024 bits)
[29/Mar/2007 14:41:01 26273] [info]  Init: Initializing (virtual) servers for SSL
[29/Mar/2007 14:41:01 26273] [info]  Init: Configuring server xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:80 for SSL protocol
[29/Mar/2007 14:41:01 26273] [info]  Init: Configuring server xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:443 for SSL protocol

※ サーバー名等はxxxxxxxxxxxxxxxxxxに変えてあります

うまく起動するとき(=PHP4.xのとき)は,1st startup roundだけで
2nd startup roundが出ていないようです(これが原因かどうかはわかりませんが)

httpd.confは,libphp4.so-->libphp5.so,mod_php4.c-->mod_php5.c
ぐらいしか変えていません(PHP4.x-->PHP5.xではここぐらいしかないような感じですが)

何か設定,インストール方法等がおかしいと思われます
どなたか,アドバイスください


よろしくお願いします


-------------------------------
須賀正明:suga @ tenrikyo.or.jp
-------------------------------



PHP-users メーリングリストの案内