system
December 30, 2004, 7:40am
1
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?
What are the options with which PHP should be compiled (anything
specific for interworx)?
What path should we give with --with-apxs2 (Anything specific for
interworx)?
Can I keep the default path for --with-config-file-path or should I use
anything specific?
Anything else to be taken care of during php compilation.
Thanks.
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
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.
What path should we give with --with-apxs2 (Anything specific for
interworx)?
This is also in the SRPM and i’d keep the default.
Can I keep the default path for --with-config-file-path or should I use
anything specific?
Anything else to be taken care of during php compilation.
Yes and no, using the defaults in the SRPM is your best bet.
Chris
system
December 31, 2004, 6:12pm
3
Thank you Chris,
And shame on you, wasting your 12/31 holiday replying my post just some hours before midnight
indeed (= no life). haha. happy new year all.
Chris
system
January 2, 2005, 5:19am
7
Hi people,
I am getting these build errors when I try to build the RPM.
Any clue?
# 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)
system
January 4, 2005, 7:45am
8
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!!!
Hi Carlos,
What unix user were you running the command as? If it wasn’t root, give try doing it as root.
Paul
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/
system
January 4, 2005, 11:30am
12
Just opened the ticket. Thank you.
system
January 6, 2005, 6:29am
13
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.
system
January 6, 2005, 11:18am
14
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