Koozali.org: home of the SME Server

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

adolfas

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #15 on: November 17, 2004, 11:26:34 AM »
I got error:

/tmp/mcexthQ6Jec: ./php4.3.9-upgrade.sh: /bin/sh: bad interpreter: Permission denied

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #16 on: November 18, 2004, 09:27:02 PM »
Hi!

I just installed it on my Test-SME 6.01 without any problem.

You did

Code: [Select]
wget -nc --tries=0 http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/php4.3.9-3upgrade.sh
sh php4.3.9-3upgrade.sh


?

Stefan

cydonia

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #17 on: December 21, 2004, 03:49:28 AM »
A tiny litte mod to the script:

if [ $IS_ODBC -eq 0 ]
then
    wget ftp://ftp.rediris.es/sites/ftp.redhat.com/pub/redhat/linux/7.3/en/os/i386/RedHat/RPMS/unixODBC-2.2.0-5.i386.rpm
else
echo "unixODBC installed skipping download"
fi



I just added the "else" statement.  I'm not sure how to edit the actual script that is hosted so i'll just leave it at that...:-)


Tristan

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #18 on: December 21, 2004, 09:44:18 AM »
script updated with "else"...

Best rgds, Ergin

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #19 on: December 21, 2004, 02:01:16 PM »
And now 4.3.10 is out, see http://forums.contribs.org/index.php?topic=25275.0

From php.net
"These are maintenance releases that in addition to non-critical bug fixes address several very serious security issues. All Users of PHP are strongly encouraged to upgrade to one of these releases as soon as possible."
............

splunk

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #20 on: January 24, 2005, 08:27:56 PM »
Ergin,  I used your php4.3.9 upgrade script that includes php-curl.  I was upgrading from php 4.1.2 where curl was working properly.  Now curl doesn't work, I'm getting the error msg

PHP Fatal error:  Call to undefined function:  curl_init()

I uncommented the line in the sh install and it showed that curl installed 100%.  Is there some other setting I need to change?

ergozd

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #21 on: January 24, 2005, 08:50:25 PM »
Well, I am not really sure what might be the problem, I have ONE guess instead. ;-)

http://zend.com/pecl/tutorials/curl.php#Heading6
Code: [Select]
From PHP version 4.2.3 on, you need a cURL version of at least 7.9.0. From PHP version 4.3.0 on, you need a cURL version of at least 7.9.8.

I think SMEServer has curl-7.9.5-2 is installed and to my knowledge there is NO RH update for curl. If am not totally wrong NORLUG has an updated version for curl for RH73, pls check http://norlug.org

Best rgds, Ergin

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #22 on: January 24, 2005, 08:57:57 PM »
Try the new search function at www.contribs.org/contribs - it is cool :)

http://mirror.contribs.org/smeserver/contribs/cgenner/RPMS/i386/curl-7.9.8-6.i386.rpm

you may also need to add a template that adds 'extension=curl.so' to php.ini

splunk

PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #23 on: January 24, 2005, 09:25:01 PM »
Thank you guys very much for the quick replies.  That rpm worked perfect gregswallow.

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #24 on: January 27, 2005, 07:24:15 AM »
I'm having problems with getting the "mcrypt" module working in my ibay. I get the following error in the message log:

httpd: PHP Warning: Unknown(): open_basedir restriction in effect.

I can access normal PHP pages just fine but the encrypted pages are not working. Any ideas as to what I might try to resolve the issue?

Thank in advance

Ed
......

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #25 on: January 27, 2005, 06:28:30 PM »
Quote from: "edb"
I'm having problems with getting the "mcrypt" module working in my ibay. I get the following error in the message log:

httpd: PHP Warning: Unknown(): open_basedir restriction in effect.

I can access normal PHP pages just fine but the encrypted pages are not working. Any ideas as to what I might try to resolve the issue?

Thank in advance

Ed
Do you have the mcrypt and mhash rpm's installed, as well as php-mcrypt?  I think you also need to add a custom template to add 'extension=mhash.so' 'extension=mcrypt.so' to php.ini.  But that error might not be about mcrypt - see: http://www.google.ca/search?hl=en&q=Unknown%28%29%3A+open_basedir+restriction+in+effect.+&btnG=Google+Search&meta=

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #26 on: January 27, 2005, 07:59:32 PM »
Hi Greg

I only have the php-mcrypt loaded. Do you know where I can get the mcrypt & mhash rpms that are SME compatible? That may be my issue.

Ed
......

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #27 on: January 27, 2005, 09:50:42 PM »
Apparently, I only need the php-mcrypt module and that I do have installed. I guess it is probably a template fragment thing such as open_basedir or something.
Here is the complete error text:

Jan 25 17:36:58 mail httpd: PHP Fatal error:  Call to undefined function:  mcrypt_module_open() in /home/e-smith/files/ibays/store/include/xxxx.inc on line 174
Jan 26 08:51:00 mail httpd: PHP Warning:  fopen(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/Primary/html/store/css/customer.css) is not within the allowed path(s): (/home/e-smith/files/ibays/store) in /home/e-smith/files/ibays/store/include/xxxx.inc on line 637
Jan 26 08:51:00 mail httpd: PHP Warning:  fopen(/home/e-smith/files/ibays/Primary/html/store/css/customer.css): failed to open stream: Operation not permitted in /home/e-smith/files/ibays/store/include/xxxx.inc on line 637
Jan 26 08:51:00 mail httpd: PHP Warning:  filesize(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/Primary/html/store/css/customer.css) is not within the allowed path(s): (/home/e-smith/files/ibays/store) in /home/e-smith/files/ibays/store/include/xxxx.inc on line 638
Jan 26 08:51:00 mail httpd: PHP Warning:  fread(): supplied argument is not a valid stream resource in /home/e-smith/files/ibays/store/include/xxxx.inc on line 638
Jan 26 08:51:00 mail httpd: PHP Warning:  fclose(): supplied argument is not a valid stream resource in /home/e-smith/files/ibays/store/include/xxxx.inc on line 639
Jan 26 08:55:01 mail last message repeated 8 times
Jan 26 08:56:58 mail httpd: PHP Fatal error:  Call to undefined function:  mcrypt_module_open() in /home/e-smith/files/ibays/store/include/xxxx.inc on line 174
Jan 26 08:58:17 mail httpd: PHP Fatal error:  Call to undefined function:  mcrypt_module_open() in /home/e-smith/files/ibays/store/include/xxxx.inc on line 174
......

Offline gregswallow

  • *
  • 651
  • +1/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #28 on: January 27, 2005, 10:12:39 PM »
The custom template you need to make goes in a file for example called /etc/e-smith/templates-custom/etc/php.ini/70DynamicExtension75mcrypt with just the text 'extension=mcrypt.so' (without the quotes).

I'm not sure it will work without these being installed:
http://mirror.contribs.org/smeserver/contribs/cgenner/RPMS/i386/mcrypt-2.6.4-1ld.i386.rpm
http://mirror.contribs.org/smeserver/contribs/cgenner/RPMS/i386/mhash-0.8.18-1ld.i386.rpm

You could try just the template first if ytou think that's all you need, but if it doesn't work I'd try installing the 2 rpms and adding 'extension=mhash.so' into the custom template file you just made as well.  Let us know how it goes.

Offline edb

  • *
  • 548
  • +0/-0
PHP upgrade v4.3.9 (based on Laurent Dinclaux's RPMS)
« Reply #29 on: January 27, 2005, 10:52:37 PM »
Thanks again Greg

I created a template file as you suggested and here is the new error:

Jan 27 15:18:07 mail httpd: PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/mcrypt.so [Syslog]' - /usr/lib/php4/mcrypt.so [Syslog]: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 27 15:18:08 mail httpd: httpd startup succeeded
Jan 27 15:18:08 mail httpd: PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/mcrypt.so [Syslog]' - /usr/lib/php4/mcrypt.so [Syslog]: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 27 15:18:15 mail httpd: PHP Fatal error:  Call to undefined function:  mcrypt_module_open() in /home/e-smith/files/ibays/store/include/xxxx.inc on line 174
Jan 27 15:20:00 mail last message repeated 8 times
Jan 27 15:20:26 mail httpd: PHP Fatal error:  Call to undefined function:  mcrypt_module_open() in /home/e-smith/files/ibays/store/include/xxxx.inc on line 174

At least the error message is different. What do you think? I have't installed the rpms because I'm told they are not required only php-mcrypt
......