php module size, build vs rpm
Hi All,
I have been messing around with building PHP5.3 on aoache2 RHEL/CentOS
5.x x86_64 and was curious if anyone else ever noticed the size
difference between RPM based PHP 5.3 installs vs build from source.
Specifically in /etc/httpd/modules (linked to
/usr/lib64/httpd/modules), when building from source using a configure
as show below, 26 MB.
-rwxr-xr-x 1 root root 26731429 Oct 8 21:38 libphp5.so
./configure --prefix=/opt/build-php-5.3.8 --with-apxs2=/usr/sbin/apxs
--with-mysqli=mysqlnd --with-config-file-path=/etc/php
--with-config-file-scan-dir=/etc/php.d --enable-zip --with-bz2
--with-zlib --enable-mbstring --with-mcrypt --with-curl
When I look at another system where RPM's were installed from centos
testing, the same .so is: 3.4 MB
-rwxr-xr-x 1 root root 3.4M Nov 13 2009 libphp5.so
Plus, all the other php modules in /usr/lib64/php only add up to 3.2
MB. ( includes dbase.so json.so mysqli.so pdo.so
uploadprogress.so xsl.so
dom.so mbstring.so mysql.so pdo_sqlite.so xmlreader.so
zip.so gd.so mcrypt.so pdo_mysql.so phpcups.so
xmlwriter.so)
What am I missing here? Seems like a performance/memory problem
waiting to happen if I go live on such a bloated libphp5.so
Thanks all!
|