Previously, I compile the php with the configure script below, which run well.
./configure --enable-magic-quotes --with-curl --enable-zend-multibyte \
--enable-fastcgi --enable-mbstring --enable-mbregex
--with-config-file-path=/etc \
--with-gd --with-zlib --with-jpeg --with-png --with-xpm \
--enable-gd-native-ttf --with-ttf --with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sockets \
--without-sqlite --with-iconv --with-pear --disable-debug \
--with-freetype-dir --with-gettext --enable-memory-limit --with-openssl \
--enable-memcache --with-apxs2=/usr/local/apache2/bin/apxs
But for static compiled-in, there is problem that the php execution
file is so huge size more than 16M. I think this will cause low
performance, because each php process should at least load 16M file to
memory. So I decide to configure with dso mode.
Than I write the configure script below:
./configure --enable-magic-quotes --enable-zend-multibyte --with-curl=shared \
--enable-fastcgi --enable-mbstring=shared --enable-mbregex=shared \
--with-config-file-path=/etc --with-gd=shared --with-zlib --with-jpeg=shared \
--with-png=shared --with-xpm=shared \
--enable-gd-native-ttf=shared --with-ttf=shared
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sockets \
--without-sqlite --with-iconv=shared --with-pear --disable-debug \
--with-freetype-dir=shared --with-gettext=shared --enable-memory-limit \
--with-openssl=shared \
--enable-memcache --with-apxs2=/usr/local/apache2/bin/apxs
The whole compile procedure is fine. But after compile I can not run
php in cgi mode( php -v display cli mode). What is wrong of my dso
configure script ?
Another question, the installation generate another extension dir
.../no-debug-zts-20050922 (Previous was only
.../no-debug-non-zts-20050922), I think maybe the installation auto
detect that dso mode need zts enabled.
So can I directly moved my previous .so file from non-zts dir to zts
dir, such as memcache.so, eaccelerator.so ?
Thanks!
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]