PDA

View Full Version : Update to PHP 4.3.10


Carlos
12-30-2004, 10:40 AM
Hi,

Due to the security holes, I want to update from php 4.3.9 to 4.3.10.

Do I need to do something special? Or just get the SRPM at
http://updates.interworx.info/iworx/SRPMS/
and do the update normally?

1) What are the options with which PHP should be compiled (anything
specific for interworx)?
2) What path should we give with --with-apxs2 (Anything specific for
interworx)?
3) Can I keep the default path for --with-config-file-path or should I use
anything specific?
4) Anything else to be taken care of during php compilation.

Thanks.

IWorx-Chris
12-31-2004, 07:46 PM
Just use the SRPM from:
http://updates.interworx.info/iworx/SRPMS/php-4.3.10-100.iworx.src.rpm and:

rpmbuild --rebuild --with <your distro>
http://updates.interworx.info/iworx/SRPMS/php-4.3.10-100.iworx.src.rpm

where <your distro> is defined here:

http://updates.interworx.info/iworx/RPMS/README


1) What are the options with which PHP should be compiled (anything
specific for interworx)?


No, iworx doesn't depend on the system's php but i'd use the defaults in teh SRPM.


2) What path should we give with --with-apxs2 (Anything specific for
interworx)?


This is also in the SRPM and i'd keep the default.


3) Can I keep the default path for --with-config-file-path or should I use
anything specific?
4) Anything else to be taken care of during php compilation.


Yes and no, using the defaults in the SRPM is your best bet.

Chris

Carlos
12-31-2004, 09:12 PM
Thank you Chris,

And shame on you, wasting your 12/31 holiday replying my post just some hours before midnight
:)

timryberg
12-31-2004, 09:28 PM
Thank you Chris,

And shame on you, wasting your 12/31 holiday replying my post just some hours before midnight
:)

He's a glutton for work :-)

IWorx-Chris
01-01-2005, 03:36 AM
indeed :( (= no life). haha. happy new year all.

Chris

timryberg
01-01-2005, 06:08 PM
indeed :( (= no life). haha. happy new year all.

Chris

To you as well Chris.

Carlos
01-02-2005, 08:19 AM
Hi people,

I am getting these build errors when I try to build the RPM.

Any clue? :confused:

# rpmbuild --rebuild --with fdr20
http://updates.interworx.info/iworx/SRPMS/php-4.3.10-100.iworx.src.rpm
Installing
http://updates.interworx.info/iworx/SRPMS/php-4.3.10-100.iworx.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.17363
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf php-4.3.10
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/php-4.3.10.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd php-4.3.10
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (php-4.3.6-libtool15.patch):'
Patch #1 (php-4.3.6-libtool15.patch):
+ patch -p1 -b --suffix .libtool15 -s
+ echo 'Patch #2 (php-4.3.6-install.patch):'
Patch #2 (php-4.3.6-install.patch):
+ patch -p1 -b --suffix .install -s
+ perl -pi -e 's|/usr/lib|/usr/lib|' php.ini-dist
+ rm -f ext/standard/tests/file/bug21131.phpt
+ rm -f ext/pspell/tests/01pspell_basic.phpt
ext/standard/tests/file/bug22414.phpt ext/session/tests/019.phpt
ext/standard/tests/math/pow.phpt ext/standard/tests/math/round.phpt
ext/standard/tests/math/abs.phpt ext/iconv/tests/ob_iconv_handler.phpt
+ mkdir build-cgi build-apache
+ '[' -f /var/tmp/php-4.3.10-gcc ']'
+ rm -f /var/tmp/php-4.3.10-gcc
+ '[' -x /usr/bin/gcc-3.2.3 ']'
+ '[' -x /usr/bin/gcc-3.2.2 ']'
+ '[' -x /usr/bin/gcc-3.2.1 ']'
+ '[' -x /usr/bin/gcc-3.2 ']'
+ '[' -x /usr/bin/gcc-3.1.1 ']'
+ echo gcc
+ '[' -f /var/tmp/php-4.3.10-show_flags ']'
+ rm -f /var/tmp/php-4.3.10-show_flags
+ cat
++ cat /var/tmp/php-4.3.10-gcc
+ chmod u+x /var/tmp/php-4.3.10-show_flags
+ /var/tmp/php-4.3.10-show_flags
/var/tmp/rpm-tmp.17363: /var/tmp/php-4.3.10-show_flags: /bin/sh: bad
interpreter: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.17363 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.17363 (%prep)

Carlos
01-04-2005, 10:45 AM
Hi, I'm posting again, as the last messages was friendly conversations, and I don't know if someone noticed that a problem appared after all the (deserved) greetings.

Please, see post above. Update the PHP is the last thing I need to do before finish the migration and I'm almost at my deadline. :eek:

Thanks!!!!!!!!!!!

IWorx-Paul
01-04-2005, 01:21 PM
Hi Carlos,

What unix user were you running the command as? If it wasn't root, give try doing it as root.

Paul

Carlos
01-04-2005, 01:56 PM
Hi Paul,

I ran as root.

IWorx-Paul
01-04-2005, 02:03 PM
Hi Carlos,

If you open a support ticket and provide your server login info I'll see if I can't figure out what the problem is. I haven't seen this particular problem before but I'd be happy help investigate.

https://secure.interworx.info/support/helpdesk/

Carlos
01-04-2005, 02:30 PM
Just opened the ticket. Thank you.

Carlos
01-06-2005, 09:29 AM
Just to close the thread. Opened a ticket and they quick replied me. The probelm was about tmp folder permissions.

Now all is ok and PHP is updated.

pascal
01-06-2005, 02:18 PM
héhé coool :)

One question carlos, when you did the rpmrebuild did it create a new rpm ?

I say this because some time it doesn't and I have to use the .spec file to rebuild the rpm (python3.2.2 for example)

Anyway Paul is really a linux master :)

I don't count everytime he found for me the pbm :)

So special dedicace to Paul :)

Pascal