Koozali.org: home of the SME Server

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« on: September 29, 2004, 10:54:10 AM »
Hi there!

Laurent Dinclaux has relased PHP v4.3.9 RPMS
http://lists.contribs.org/mailman/public/devinfo/msg06962.html

I have now updated script for Laurent's RPMS and tested on couple of machines without any problem.

Good luck. Upgrade at your own risk. ;-)
http://ergin.dyndns.org/download/php4.3.9-upgrade.sh

Best rgds, Ergin

navir

Awesome job
« Reply #1 on: September 30, 2004, 12:10:56 PM »
PHP upgrade 4.3.9 works on my 6.0.1 server
Thanks  a lot

Nav
visit me at http://compco.info

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #2 on: September 30, 2004, 09:20:41 PM »
Glad to be able to help.  8-)

Best rgds, Ergin

Offline dmac

  • ***
  • 143
  • +0/-0
    • http://www.rylar.ca
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #3 on: October 10, 2004, 06:46:59 AM »
The link indicated

http://ergin.dyndns.org/download/php4.3.9-upgrade.sh

appears to be invalid.  I have tried several times and receive a Proxy 502 error.

 :-(
"In a world without Fences, why do we need Gates and Windows"

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #4 on: October 10, 2004, 08:52:55 AM »
Thank you dmac...

I was "re-furnishing" my server room yesterday and it looks like I was not all that careful I thought I was. :oops:

Now it's up n running.

Best rgds, Ergin

ergozd

UPDATED PHP upgrade script (based on ldinclaux RPMS)
« Reply #5 on: October 17, 2004, 09:02:25 AM »
Hi there!

Update of PHP-upgrade script
 - path now on ibiblio.org
 - new php-modules php-curl, php-mcrypt

http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/php4.3.9-upgrade.sh

OR

http://www.ibiblio.org/pub/linux/distributions/smeserver/contribs/ergozd/scripts/php4.3.9-upgrade.sh

As usual upgrade at your own risk... ;-)
You will have to modify script if you want to install modules php-curl, php-mcrypt, php-pgsql

Best rgds, Ergin

Henk

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #6 on: October 17, 2004, 11:38:42 AM »
In this part of the script you've set an option to uncomment twice the same rpm. Are you sure that's right?

# Uncomment next line if you are using mcrypt
# wget http://www.ibiblio.org/pub/linux/distributions/smeserver/contribs/ldinclaux/SME6.x/Contribs/RPMS/php-mcrypt-4.3.9-3ld.i386.rpm

# Uncomment next line if you are using curl
# wget http://www.ibiblio.org/pub/linux/distributions/smeserver/contribs/ldinclaux/SME6.x/Contribs/RPMS/php-mcrypt-4.3.9-3ld.i386.rpm

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #7 on: October 17, 2004, 11:41:59 AM »
Hello Henk!

As you pointed out the later one should be php-curl*... I'll update it whenever I find the time.

Thanx. ;-)
Best rgds, Ergin

Offline netspirit

  • 14
  • +0/-0
    • http://www.om-conseil.com
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #8 on: October 17, 2004, 05:43:01 PM »
Hi all!
It does not work for me on an 6.0.1-1 box running php 4.1.2
When the script finish, I'm getting twice this message:
php4.3.9-upgrade.sh: pear: command not found

Then httpd restart but the php version is still the same. Do I need to reboot? Or may I have to do something else before running the Laurent script?
Regards,
Olivier
...
Nous ne savons pas le vrai si nous ne savons la cause - PLATON
www.om-conseil.com

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #9 on: October 17, 2004, 08:40:06 PM »
Looks like php-4.3.9-3ld.i386.rpm has some problem

Code: [Select]
Preparing...                ########################################### [100%]
   1:php                    error: unpacking of archive failed: cpio: read


Will have to check with Laurent L who is the contributor of php RPMS. Stand-by. :-)

Until then try using the original script for v4.3.9.
http://ergin.dyndns.org/download/php4.3.9-upgrade.sh

Best rgds, Ergin

Offline grand-pa

  • *
  • 190
  • +0/-0
    • SME Server Fr
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #10 on: November 14, 2004, 11:33:45 PM »
Hi all,

Thanks a lot for this amazing job ! Everything works fine on my own server. 8-)

But would it be possible, for a next release, to add the option --enable-exif : it is more and more used by image galleries and, of course, the one i've chosen needs it. ;-)

Thanks in advance. :pint:
SME Server v7.4 Server and gateway
Shuttle K45, Celeron E1400, 2x1Go DDR2, 2x250 Go SATA2 RAID-1

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #11 on: November 15, 2004, 08:14:01 PM »
Laurent has offered his help compiling "other flags"... Pls drop him a few lines.

Glad to be able to help.  8-)

Best rgds, Ergin

Offline grand-pa

  • *
  • 190
  • +0/-0
    • SME Server Fr
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #12 on: November 16, 2004, 02:14:27 AM »
While i was looking for Laurent's email address in the devinfo ML, i found one of his lasts messages (unfortunatly, i didn't remembered it yesterday) in which he says he added the exif support in its last version.

I modified the script php4.3.9-upgrade.sh and replaced all calls to php-xxx-4.3.9-1ld.i386.rpm with php-xxx-4.3.9-3ld.i386.rpm.
Of course, it works perfectly ! 8-)

Once again thank you very much, you two, for this good work. :pint:
SME Server v7.4 Server and gateway
Shuttle K45, Celeron E1400, 2x1Go DDR2, 2x250 Go SATA2 RAID-1

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
Upgrade to 4.3.9 breaks my ibay php pages
« Reply #13 on: November 16, 2004, 05:37:15 PM »
after running the above upgrade script, no php pages work in any of my ibays, yet php works fine in my primary site.

Can't see anything in the logs indicating what the error is.

Any ideas?
............

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #14 on: November 16, 2004, 09:24:00 PM »
Solved.

In prior releases, I needed to run the following to force / for PHPBaseDir

Quote
/sbin/e-smith/db accounts setprop arachnerd PHPBaseDir /


After this 4.3.9 upgrade, I was getting the following errors in var/log/messages

Quote
Nov 16 14:56:59 gluon httpd: PHP Warning:  Unknown(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/prospace-tst/html/test.php) is not within the allowed path(s): (/:/usr/share/pear) in Unknown on line 0


So I removed the previous settings with

Quote
/sbin/e-smith/db accounts delprop arachnerd PHPBaseDir /
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service http-e-smith restart


And php is now working as expected in the ibays...[/quote]
............