Neill R on 8 Oct 2011 18:46:47 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] php module size, build vs rpm


Hi Guys,

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!
Neil
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug