PHPもスレッドに

Apacheをworkerにした場合、PHPもスレッド対応させないといけませんです。
でもPHPの中の人はスレッドで動かす事を推奨していない(むしろ否定的)なのでOwn Riskってやつでしょうかね。

とりあえず、私のコンパイルオプションは、
./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-zend-multibyte --enable-mbregex --enable-sockets --with-gettext=/opt/sfw --with-iconv --with-gd --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-mysql=/opt/mysql/mysql --with-pgsql --with-zlib --with-mime-magic --with-imap-ssl --with-ttf --with-freetype-dir=/usr/local --enable-gd-native-ttf --enable-gd-jis-conv --enable-exif --with-curl=/usr/local --with-openssl --with-gnu-ld --enable-maintainer-zts

とりあえず、「—enable-maintainer-zts」を付けてコンパイルを通せばThread safe => enableになります。

あとはextension等を組み込んでいる場合には別途再インストールを。