Koozali.org: home of the SME Server

php upgrade for 6.0

Bruce

php upgrade for 6.0
« on: January 05, 2004, 02:08:44 PM »
Has anyone created an RPM for upgrading SME/e-Smith 6.0 to the latest version of PHP? I've searched the Forum and found tons of faiures and extensive dialog to follow, but I haven't found a "here's the solution in a nutshell."

Ergin

Re: php upgrade for 6.0
« Reply #1 on: January 05, 2004, 03:08:46 PM »
Hi there!

1 - Find out which PHP RPMs you have installed on your system
[root@xxxxxx root]# rpm -qa|grep php-

Then download those RPMS you want to upgrade from (Dan Brown's contrib)
http://www.ibiblio.org/pub/Linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/

Then run
#rpm -Uvh php-*

Good luck.

Bruce

Re: php upgrade for 6.0
« Reply #2 on: January 05, 2004, 03:42:57 PM »
I tried Dan's RPM for 6.0 and found that there were other "pieces" missing, indicating that the RPM has not been done for 6.0.  Since I'm not near my server right now, I can't provide the specific error message, but I'll try to gather it when I get back to the server room.

Bruce

Re: php upgrade for 6.0
« Reply #3 on: January 09, 2004, 03:30:52 AM »
This sounds like an easy solution, but that doesn't tell me all the things I need to update. When starting with 4.1.2-7.3.6es1, do I only have to update PHP or should I also update php-imap, php-ldap and php-mysql?

Ergin

Re: php upgrade for 6.0
« Reply #4 on: January 09, 2004, 11:31:02 AM »
You should update the all...

Bruce

Re: php upgrade for 6.0
« Reply #5 on: January 10, 2004, 06:06:01 PM »
Good try, but no cigar!

When attempting to install 4.3.4, I get:

Failed discrepencies errors. The screen looks like this:

error: failed depencencies:
  BEGIN is needed by php-devel-4.3.4-1db
  mkinstalldirs is needed by php-dev-4.3.4-1db
  unixODBC is need by php-odbc-4.3.4-1db
  libodbc.so.1 is needed by php-odbc-4.3.4-1db
  postgresql is needed by is needed by pgsql-4.3.4-1db
  libpg.so.2 is needed by pgsql-4.3.4-1db

Are there any updated RPMs out there?

Dan Brown

Re: php upgrade for 6.0
« Reply #6 on: January 16, 2004, 05:02:47 AM »
Ergin's first answer (from 1/5) should do it.  I'm running those RPMs on my SME 6 server right now, and have been since November.

Offline bruce

  • *
  • 15
  • +0/-0
    • http://www.ournetfamily.com
Still no success
« Reply #7 on: January 26, 2004, 09:47:30 PM »
:-x There appears to be a gap somewhere.

The version of e-smith released included php-4.1.2-7.3.6es1 with the variences for imap, ldap and mysql. The olders version of PHP supported is php-4.1.2-2es, and then jumps to php-4.2.1-3db. In any case, I receive multiple errors that libcrypto.so.1, libdb-3.1so. and libssl.so.1 are needed when attempting to run rmp -Uvh php*

Are there any other ideas? :-?
......

webster

Re: php upgrade for 6.0
« Reply #8 on: January 27, 2004, 11:21:12 AM »
Quote from: "Dan Brown"
Ergin's first answer (from 1/5) should do it.  I'm running those RPMs on my SME 6 server right now, and have been since November.


don't suppose you have have a later 2++ version of GD working there Dan?

there are a few of us ( http://forums.contribs.org/index.php?topic=20283.0 ) wanting some other areas of PHP upgraded oh mighty php upgrading Guru  :lol: ... any advice would be much appreciated!!!!!

Thanks
T

Anonymous

php upgrade for 6.0
« Reply #9 on: January 27, 2004, 11:40:59 PM »
I too used the same approach as Ergin and all worked fine except I had to install the pear Log module (pear install Log) to get IMP working properly (this may be because I'm still running 6beta3 - must update one of these days...).

Also upgraded to MySQL 4.0.17 without issues.

Trevor B

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
php upgrade for 6.0
« Reply #10 on: January 27, 2004, 11:58:16 PM »
More information.

The RPM's I installed (via rpm -Uvh) are:
    php-4.3.4-1db.i386.rpm
    php-imap-4.3.4-1db.i386.rpm
    php-ldap-4.3.4-1db.i386.rpm
    php-mysql-4.3.4-1db.i386.rpm

The command to install the pear Log module is:
pear install Log

Trevor B

Offline bruce

  • *
  • 15
  • +0/-0
    • http://www.ournetfamily.com
Just more of the same
« Reply #11 on: January 31, 2004, 03:23:41 AM »
So the real answer here is that all the responders installed on the beta or upgraded version, and nobody wants to do a clean install and test for the upgrade working. :pint: Maybe someone will just step back, read the messages, install 6.0.0 with no patches and try the PHP patches to determine what the problem is.  ;-)
......

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
php upgrade for 6.0
« Reply #12 on: February 01, 2004, 08:14:49 AM »
Bruce,

have now installed a new system with sme6.0 clean and done an upgrade to PHP 4.3.4 & MySQL 4.0.17 at the same time (I needed MySQL 4.0.17).

For complete clarity I have also added phpmyadmin.

RPM's installed as per earlier post:
php-4.3.4-1db.i386.rpm
php-imap-4.3.4-1db.i386.rpm
php-ldap-4.3.4-1db.i386.rpm
php-mysql-4.3.4-1db.i386.rpm
(I did them all as an single install - ie. put them in their own drectory and did a rpm -Uvh php*.rpm)

And added pear Log module to ensure that Webmail still works.
pear install Log

The only other things I did was restart httpd & httpd-e-smith via
/etc/init.d/httpd restart
/etc.init.d/httpd-e-smith restart

Good Luck

Trevor B

Offline bruce

  • *
  • 15
  • +0/-0
    • http://www.ournetfamily.com
Finally!
« Reply #13 on: February 01, 2004, 03:09:02 PM »
The problem appears to be in excess. There were more RPMs in (like the manual), and when I only installed the 4 necessary (and followed the rest of Trevor's steps), the install went smoothly.

Thanks for the patience and understanding.
......

webster

php upgrade for 6.0
« Reply #14 on: February 04, 2004, 12:10:09 PM »
Quote from: "TrevorB"

have now installed a new system with sme6.0 clean and done an upgrade to PHP 4.3.4 & MySQL 4.0.17 at the same time (I needed MySQL 4.0.17).


that doesn't upgrade gd tho does it? thats on of the big things i am waiting for... so i can do true colour not 256 colour images

have a poll on this bruce knows about it but if anyone else doesn't
if you would like to see an  upgrade to a newer version of PHP including a newer version of Mysql & GD... something that is not 2 years old like somw of  the current versions... and Idealy =>GD2
(maybe even look upgrading - Apache & PERL)

(Wish i could offer to do so but i'm not that much of a techie... but its still worth gettin it known that we want it upgraded)

please go here and vote!!!
http://forums.contribs.org/index.php?topic=20283.msg79813#msg79813