Koozali.org: home of the SME Server

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS

ergozd

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« on: January 12, 2005, 08:34:30 PM »
Hello everyone!

Dan has released php-4.3.10 RPMS
http://lists.contribs.org/mailman/public/devinfo/msg07709.html

I updated the script
http://ergin.dyndns.org/download/php4.3.10-upgrade.sh

Best rgds, Ergin

guest22

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #1 on: January 13, 2005, 12:57:16 AM »
Heya Ergin,

contribs.org would be happy to provide you with your own FTP area (contrib area), care to join?

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #2 on: January 13, 2005, 02:57:57 PM »
Hello everyone...

This script dosen't work for me !!!

All is down now... If I type php -v to see the version, nothing appear ???? AND all of my HTTPD was down and inaccessible !!!

NOW I downgrade to PHP 4.3.9 and EVERYTHING was fine.!!!

Any idea ?

Thanks,

Snoopyski

ergozd

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #3 on: January 13, 2005, 03:34:26 PM »
1 - Did you see/get any messages etc?

2 - Do you have any PHP optimizer (Zend Optimizer and/or MMCache) installed on your system?
If so you'll have recompile newer modules.

I tested on my test server and later on my production server before I posted this thread.

Best rgds, Ergin

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #4 on: January 13, 2005, 03:58:56 PM »
Thanks for reply,

1) I never received any error message...

2) Yes I have the MMCache installed from Master Sleepy...

Do I need to uninstall the RPM for MMCache ?

Thanks,

Snoopyski

ergozd

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #5 on: January 13, 2005, 06:38:34 PM »
/usr/lib/php4/mmcache.so needs to re-complied.

Solution 1 - MasterSleepy has informed in thread
http://forums.contribs.org/index.php?topic=24730.0
Quote
Hi all,
I've recompile and rebuild the rpm so that it could be used with php 4.3.10.
The link don't have changed.


Solution 2 - if above rpm doesn't help you can copy mmcache.so I built with php-4.3.10 from http://ergin.dyndns.org/download/mmcache/php_4310/mmcache.so

That should do the trick.

Good luck, Ergin

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #6 on: January 13, 2005, 07:08:20 PM »
Yes I know... Thats the version is installed on my SME...

Thanks,

Snoopyki

Offline raem

  • *
  • 3,972
  • +4/-0
Re: [Announce] PHP4.3.10 upgrade script -based on DanBrowns
« Reply #7 on: January 14, 2005, 03:12:33 AM »
ergozd

> I updated the script
> http://ergin.dyndns.org/download/php4.3.10-upgrade.sh

Thanks for your script.
The use of the service command in sme is deprecated and does not necessarily do what you may want it to do in all circumstances.
eg in your script near the end
service httpd restart

Better alternatives are:
/etc/init.d/httpd restart
or
/etc/e-smith/events/actions/restart-httpd-full

Perhaps you would like to update your script ?
Thanks to Charlie for pointing this out to me and to all of us quite regularly.
...

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: [Announce] PHP4.3.10 upgrade script -based on DanBrowns
« Reply #8 on: January 14, 2005, 04:52:25 AM »
Quote from: "ergozd"
Hello everyone!

Dan has released php-4.3.10 RPMS
http://lists.contribs.org/mailman/public/devinfo/msg07709.html

I updated the script
http://ergin.dyndns.org/download/php4.3.10-upgrade.sh

Best rgds, Ergin


Do you know what the difference between Dan's RPM build and what was being used in the unofficial upgrade script that is floating around?

JB
......

ergozd

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #9 on: January 14, 2005, 01:17:12 PM »
The differences are in how they are created (what's in spec file)

1 - contentdir

Dan Browns RPMS
Code: [Select]
%define contentdir /home/e-smith/files/primary

RHX RPMS
Code: [Select]
%define contentdir /var/www/html

2 - ./configure options
Following options are the SAME
Code: [Select]
./configure'
'i386-redhat-linux'
'--prefix=/usr'
'--exec-prefix=/usr'
'--bindir=/usr/bin'
'--sbindir=/usr/sbin'
'--sysconfdir=/etc'
'--datadir=/usr/share'
'--includedir=/usr/include'
'--libdir=/usr/lib'
'--libexecdir=/usr/libexec'
'--localstatedir=/var'
'--sharedstatedir=/usr/com'
'--mandir=/usr/share/man'
'--infodir=/usr/share/info'
'--prefix=/usr'
'--with-config-file-path=/etc'
'--enable-force-cgi-redirect'
'--enable-pic'
--disable-debug'
'--disable-rpath'
'--enable-inline-optimization'
'--with-bz2'
'--with-db3'
'--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr'
'--with-gd'
'--with-gdbm'
'--with-gettext'
'--with-gmp'
'--with-jpeg-dir=/usr'
'--with-mm'
'--with-openssl'
'--with-png'
'--with-xml'
'--with-expat-dir=/usr'
'--with-zlib'
'--with-layout=GNU'
'--enable-bcmath'
'--enable-debugger'
'--enable-ftp'
'--enable-magic-quotes'
'--enable-safe-mode'
'--enable-sockets'
'--enable-sysvsem'
'--enable-sysvshm'
'--enable-discard-path'
'--enable-track-vars'
'--enable-trans-sid'
'--enable-yp'
'--enable-wddx'
'--without-oci8'
--with-imap-ssl'
'--with-kerberos=/usr/kerberos'
'--with-ldap=shared'
'--with-mysql=shared,/usr'
'--with-pgsql=shared'
'--with-snmp=/usr'
'--with-snmp=shared'
'--enable-ucd-snmp-hack'
'--with-unixODBC=shared'
'--enable-memory-limit'
'--enable-bcmath'
'--enable-shmop'
'--enable-versioning'
'--enable-mbstring'
'--with-ttf'
'--with-apxs=/usr/sbin/apxs'


The different options are
in DanBrowns RPMS
Code: [Select]
'--with-imap=shared,/usr/local/src/imap-2002e'
'--with-dom'
'--with-regex=system'
'--enable-mime-magic'
'--with-iconv'


in RHX RPMS
Code: [Select]
'--with-imap=shared'
'--enable-calendar'
'--enable-dbx'
'--enable-dio'
'--enable-mcal'
'--enable-mbstr-enc-trans'
'--with-dom=/usr'
'--with-png-dir=/usr'
'--enable-gd-native-ttf'
'--with-ncurses'
'--with-iconv'
'--with-pspell'
'--with-regex=system'
'--enable-exif'


So you can install the PHP RPM which suits your system and/or applications best...

Best rgds, Ergin

PS: Laurent Dinclaux's PHP RPMS had some other options like
Code: [Select]
--with-curl
--with-mcrypt
--enable-sockets
--enable-pcntl
--enable-sigchild

ergozd

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #10 on: January 14, 2005, 01:20:46 PM »
As RayMichell suggested the script is modified with
/etc/e-smith/events/actions/restart-httpd-full

Best rgds, Ergin

Quote
ergozd

> I updated the script
> http://ergin.dyndns.org/download/php4.3.10-upgrade.sh

Thanks for your script.
The use of the service command in sme is deprecated and does not necessarily do what you may want it to do in all circumstances.
eg in your script near the end
service httpd restart

Better alternatives are:
/etc/init.d/httpd restart
or
/etc/e-smith/events/actions/restart-httpd-full

Perhaps you would like to update your script ?
Thanks to Charlie for pointing this out to me and to all of us quite regularly.

splunk

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #11 on: January 24, 2005, 06:35:50 PM »
I upgraded to 4.3.9 with the script that lets you also do curl.  Curl no longer works on my system.  Any ideas?

ergozd

[Announce] PHP4.3.10 upgrade script -based on DanBrowns RPMS
« Reply #12 on: January 24, 2005, 08:39:12 PM »
Hi there!

Laurent has compiled PHP v4.3.9 with some other options like curl
Code: [Select]
# 2004-09-29 Laurent Dinclaux relased php-4.3.9
# I have released PHP 4.3.9 RPMs. In addition of Dan Brown releases:
# - Curl extension
# - Compiled with options
#     --enable-sockets --enable-pcntl --enable-sigchild


Dan Browns PHP v4.3.10 options are couple of posts above and as you can see he's not compiled his RPMS with curl.

Best rgds, Ergin