Recompile/Rebuilding Apache and PHP with MySQL support.

Roy Hoobler roy at connectcomputing.com
Sun Nov 6 03:47:34 CET 2005


Sorry for the double post...  Saturday night...
On Saturday 05 November 2005 08:24 pm, Roy Hoobler wrote:
> Hi,
> I got most of this working but cannot get php to recompile.
>
> I tried to add it to an install but PHP wouldn't recompile. so...
>
> I added everything to an original install (and it seemed to work).  However
> the php at the @trigger command.  I went back and changed it to @forcere
> but not have a quasi error saying it is a SURPLUS. (close to the same
> problem)
I added everything to an original install - and it seemed to work.  However, 
php still has the same default values, so I changed @trigger to @forcere and 
did get the SURPLUS error.  Then I followed the instructions below, using 
@wiperpm/forcein, and it looks like everything worked, but when I look at 
phpInfo, it is still without any of the modules supported.  On the system 
the /kolab/include/php/main/build-defs.h shows the original configuration. I 
also tried modifying that without success, kolab just replaced it.

>
> I have a test page that calls phpInfo to see.
>
Also, I'm using debian 
> Any ideas?
>
> Thanks,
>
Thanks again 
> Roy
>
> On Friday 21 October 2005 12:08 pm, Fabio Pietrosanti wrote:
> > My configuration include also mysql along with gdlib and other packages.
> >
> > *cd /kolab/RPM/SRC*
> >
> > Download all needed packages:
> > *wget -b **ftp://ftp.openpkg.org/release/2.4/SRC/jpeg-6b-2.4.0.src.rpm*
> >
> > *wget -b **ftp://ftp.openpkg.org/release/2.4/SRC/png-1.2.8-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/freetype-2.1.9-2.4.0.src.rpm*
> >
> > *wget -b **ftp://ftp.openpkg.org/release/2.4/SRC/gd-2.0.33-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/gnupg-1.4.1-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/libmcrypt-2.5.7-2.4.0.src.rp
> >m*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/mhash-0.9.2-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/tcpwrappers-7.6k-2.4.0.src.r
> >pm *
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/syslog-ng-1.6.8-2.4.0.src.rp
> >m*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/snmp-5.2.1-2.4.0.src.rpm *
> > <ftp://ftp.openpkg.org/release/2.4/SRC/snmp-5.2.1-2.4.0.src.rpm>
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/snmpdx-0.2.10-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/mrtg-2.12.1-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/rrdtool-1.2.10-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/coreutils-5.2.1-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/openssh-4.1p1-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/traceroute-1.4a12-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/mysql-4.1.12-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/mhonarc-2.6.12-2.4.0.src.rp*
> >m
> > <ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/mhonarc-2.6.12-2.4.0.src.rpm>
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/current/SRC/nagios-1.2-20050919.src.rpm*
> > <ftp://ftp.openpkg.org/current/SRC/nagios-1.2-20050802.src.rpm>
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/current/SRC/inetutils-1.4.2-20050910.src.rpm*
> > <ftp://ftp.openpkg.org/current/SRC/inetutils-1.4.2-20041129.src.rpm>
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/current/SRC/fping-2.4b2to-20041011.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/pkgconfig-0.17.2-2.4.0.src.rpm*
> >
> > *wget -b
> > **ftp://ftp.openpkg.org/release/2.4/SRC/libart-2.3.16-2.4.0.src.rpm*
> >
> > *wget -b
> > ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/imaputils-2002-2.4.0.src.rpm*
> >
> > *wget -b
> > ftp://ftp.openpkg.org/release/2.4/SRC/PLUS/openvpn-2.0-2.4.0.src.rpm*
> >
> > *wget -b
> > ftp://ftp.openpkg.org/release/2.4/SRC/libtool-1.5.18-2.4.0.src.rpm*
> >
> >
> > Create the new obmtool config files with packages that need to be
> > installed: *cp obmtool.conf obmtool-custom.conf*
> >
> > *vim obmtool-custom.conf*
> >
> >
> >     *
> >
> >       remove all kolab packages definitions ( @install )
> >
> >     *
> >
> >       change loc definition to ./
> >
> >           o
> >
> >             *loc='./'*
> >
> >     * add to obmtool.conf
> >
> >
> > *@install ${loc}jpeg-6b-2.4.0*
> >
> > *@install ${loc}png-1.2.8-2.4.0*
> >
> > *@install ${loc}freetype-2.1.9-2.4.0*
> >
> > *@install ${loc}gd-2.0.33-2.4.0*
> >
> > *@install ${loc}gnupg-1.4.1-2.4.0*
> >
> > *@install ${loc}libmcrypt-2.5.7-2.4.0*
> >
> > *@install ${loc}mhash-0.9.2-2.4.0*
> >
> > *@install ${loc}tcpwrappers-7.6k-2.4.0*
> >
> > *@install ${loc}snmp-5.2.1-2.4.0*
> >
> > *@install ${loc}snmpdx-0.2.10-2.4.0*
> >
> > *@install ${loc}mrtg-2.12.1-2.4.0*
> >
> > *@install ${loc}pkgconfig-0.17.2-2.4.0*
> >
> > *@install ${loc}libart-2.3.16-2.4.0*
> >
> > *@install ${loc}rrdtool-1.2.10-2.4.0*
> >
> > *@install ${loc}coreutils-5.2.1-2.4.0*
> >
> > *@install ${loc}openssh-4.1p1-2.4.0*
> >
> > *@install ${loc}traceroute-1.4a12-2.4.0*
> >
> > *@install ${loc}mysql-4.1.12-2.4.0*
> >
> > *@install ${loc}fping-2.4b2to-20041011*
> >
> > *@install ${loc}nagios-1.2-20050919.src.rpm
> > <ftp://ftp.openpkg.org/current/SRC/nagios-1.2-20050802.src.rpm>*
> >
> > *@install ${loc}inetutils-1.4.2-20050910*
> >
> > *@install ${loc}syslog-ng-1.6.8-2.4.0*
> >
> > *@install ${loc}imaputils-2002-2.4.0*
> >
> > *@install ${loc}mhonarc-2.6.12-2.4.0*
> >
> > *@install ${loc}openvpn-2.0-2.4.0*
> >
> > *@install ${loc}libtool-1.5.18-2.4.0*
> >
> >     *
> >
> >       Remove and force recompilation of apache with the following
> >       modules: mysql, bzip2, freetype, gd, mcrypt, mhash, snmp
> >
> > @wiperpm ${altloc}apache-1.3.33-2.4.1_kolab
> >
> > *@forcein ${altloc}apache-1.3.33-2.4.1_kolab \*
> >
> > *--with=mod_auth_ldap --with=mod_dav \*
> >
> > *--with=mod_php --with=mod_php_zlib \*
> >
> > *--with=mod_php_gdbm --with=mod_php_gettext \*
> >
> > *--with=mod_php_imap --with=mod_php_openldap \*
> >
> > *--with=mod_php_xml --with=mod_php_dom \*
> >
> > *--with=mod_ssl --with=mod_php_mbstring \*
> >
> > */--with=mod_php_mysql --with=mod_php_bzip2 \/*
> >
> > /*--with=mod_php_freetype --with=mod_php_gd \*/
> >
> > /*--with=mod_php_mcrypt --with=mod_php_mhash \*/
> >
> > /*--with=mod_php_snmp*/
> >
> > /*@wiperpm ${altloc}php-4.3.11-2.4.0_kolab*/
> >
> > *@forcein ${altloc}php-4.3.11-2.4.0_kolab \*
> >
> > *--with=zlib --with=gdbm \*
> >
> > *--with=gettext --with=imap \*
> >
> > *--with=openldap --with=pear \*
> >
> > *--with=xml --with=dom \*
> >
> > *--with=ssl --with=mbstring \*
> >
> > /*--with=mcrypt --with=mysql \*/
> >
> > /*--with=mbzip2 --with=gd \*/
> >
> > /*--with=snmp*/
> >
> >
> >     *
> >
> >       Now start the packages compilation
> >
> > *./obmtool -c obmtool-conf.conf kolab*
> >
> >
> > This was a cut&paste from the installation document i'm writing that
> > will be released after the infrastructure on which i'm working will go
> > in production.
> >
> > Fabio
> >
> > Yomiit ha scritto:
> > > Hi All,
> > >
> > > I have being able to successfully installed Kolab2 and everything works
> > > ok. I am trying to setup Horde as described on Kolab website, but do
> > > not know how to go about recompiling Apache and PHP with MySQL support
> > > without having to rebuild Kolab.
> > >
> > > I would appreciate if I can get pointers on how to achieve this.
> > >
> > > Many Thanks
> > >
> > > --
> > > Yomiit
> > >
> > > _______________________________________________
> > > Kolab-users mailing list
> > > Kolab-users at kolab.org
> > > https://kolab.org/mailman/listinfo/kolab-users

-- 
Roy Hoobler
Connect Computing Inc
IT Consulting for Business
http://www.connectcomputing.com
(973)759-5375




More information about the users mailing list