ispCP - Board - Support
Updating PHP from 5.2.6 to 5.3.2? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: Updating PHP from 5.2.6 to 5.3.2? (/thread-10167.html)

Pages: 1 2


RE: Updating PHP from 5.2.6 to 5.3.2? - GioMac - 03-29-2010 06:34 PM

http://patch-tracker.debian.org/package/php5/5.3.1-5

no way man, they have no patches for it Big Grin
you MUST have problems with wordpress Big Grin


RE: Updating PHP from 5.2.6 to 5.3.2? - gOOvER - 03-29-2010 07:43 PM

**removed outdated URL**
works without problems Smile

Where have you problems?? Maybe i can reproduce Smile


RE: Updating PHP from 5.2.6 to 5.3.2? - s2000tim - 03-30-2010 12:19 AM

it's me again. i updatet php to 5.3.2 and mysql to 5.1.44. when i want to log in into ispcp i get this message:

Warning: idn_to_ascii() expects parameter 2 to be long, string given in /var/www/ispcp/gui/include/ispcp-functions.php on line 374

Warning: idn_to_ascii() expects parameter 2 to be long, string given in /var/www/ispcp/gui/include/ispcp-functions.php on line 374

i got the php package from dotdeb.org
apart from that my website runs without problems.


RE: Updating PHP from 5.2.6 to 5.3.2? - GioMac - 03-30-2010 06:12 AM

(03-29-2010 07:43 PM)gOOvER Wrote:  works without problems Smile

Where have you problems?? Maybe i can reproduce Smile

strange...

s2000tim
http://isp-control.net/forum/showthread.php?mode=linear&tid=7513&pid=


RE: Updating PHP from 5.2.6 to 5.3.2? - bulforce - 04-05-2010 10:27 AM

This was done on debian lenny 32bit

Add this lines in your /etc/apt/sources.list
Quote:deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all

Issue command:
Quote:# apt-get update

Update php to 5.3.2
Quote:# apt-get install php5


It works for me... so far!

Will get back if problems appear.

Update:

It seems that after logout... I couldnt log in due to error in idn_to_ascii() built in function. I checked the manual regarding this function and seems that the second parameter is optional, so i removed it

here is the encode_idna() from ispcp-functions.php that worked for me.
Code:
function encode_idna($input) {
        if (function_exists('idn_to_ascii')) {
                //return idn_to_ascii($input, 'utf-8');
                return idn_to_ascii($input);
        }

        $IDN = new idna_convert();
        $output = $IDN->encode($input);
        return $output;
}


Next thing is that the date() throws errors due to default time zone not being set. I decide to set that in the php.ini so it will be applied globally over the whole ispcp gui

Uncomment date.timezone and put your timezone in /var/www/fcgi/master/php5/php.ini
Code:
date.timezone = "America/New_York"

next error
Quote:Deprecated: Function split() is deprecated in /var/www/ispcp/gui/include/phpsysinfo/common_functions.php on line 169

Deprecated: Function split() is deprecated in /var/www/ispcp/gui/include/phpsysinfo/class.Linux.inc.php on line 116

fix it by replacing the deprecated function split() with explode()

Thats so far... if I see something else will post back


RE: Updating PHP from 5.2.6 to 5.3.2? - sseitz - 05-19-2010 07:23 AM

Quote:Next thing is that the date() throws errors due to default time zone not being set. I decide to set that in the php.ini so it will be applied globally over the whole ispcp gui

Uncomment date.timezone and put your timezone in /var/www/fcgi/master/php5/php.ini
Code:
date.timezone = "America/New_York"

I'ld suggest to set the timezone systemwide for any php process (including cli calls) to avoid potential problems with e.g. cronjobs. Better add this line into a file placed in /etc/php5/conf.d/ like /etc/php5/conf.d/datetimezone.ini


RE: Updating PHP from 5.2.6 to 5.3.2? - RatS - 05-19-2010 05:32 PM

Thank you for your report!

(04-05-2010 10:27 AM)bulforce Wrote:  It seems that after logout... I couldnt log in due to error in idn_to_ascii() built in function. I checked the manual regarding this function and seems that the second parameter is optional, so i removed it

here is the encode_idna() from ispcp-functions.php that worked for me.
I will check this.

(04-05-2010 10:27 AM)bulforce Wrote:  Next thing is that the date() throws errors due to default time zone not being set. I decide to set that in the php.ini so it will be applied globally over the whole ispcp gui

There is a ticket open #2053 to handle this issue.

(04-05-2010 10:27 AM)bulforce Wrote:  
Quote:Deprecated: Function split() is deprecated in /var/www/ispcp/gui/include/phpsysinfo/common_functions.php on line 169

Deprecated: Function split() is deprecated in /var/www/ispcp/gui/include/phpsysinfo/class.Linux.inc.php on line 116

phpSysInfo will be removed with ispCP Omega 1.0.6

Could you please additionally check if ticket #1910 is valid or not. If two confirm that it is not, we can close the ticket. Thanks!